def escapeNTB(st, bar=True):
    """
		scapes Newline, Tab, Baskslash, and vertical Bar (if bar=True)
	"""
    st = st.replace('\\\\', '\\\\\\\\')
    st = st.replace('\t', '\\t')
    st = st.replace('\n', '\\n')
    if bar:
        st = st.replace('|', '\\|')
    return st
