def strip_escapes(text):
    return _ANSI_ESCAPE_PATTERN.sub("", text)
Removes ANSI escape sequences from text (if any are contained).
dataset/ETHPy150Open behave/behave/behave/formatter/ansi_escapes.py/strip_escapes