def strip_esc_sequence(txt):
    if isinstance(txt, six.string_types):
        return txt.replace('\033', '?')
    else:
        return txt
Replace ESC (ASCII 27/Oct 33) to prevent unsafe strings
dataset/ETHPy150Open saltstack/salt/salt/output/__init__.py/strip_esc_sequence