def escape(text, chars=HTML_ESCAPE_CHARS):
    for s, h in chars:
        text = text.replace(s, h)
    return text
Escape a few XML special chars with XML entities.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/microdom.py/escape