def escape(s):
    if hasattr(s, '__html__'):
        return s.__html__()
    return Markup(unicode(s)
        .replace('&', '&amp;')
        .replace('>', '&gt;')
        .replace('<', '&lt;')
        .replace("'", '&#39;')
        .replace('"', '&#34;')
    )
Convert the characters &, <, >, ' and " in string s to HTML-safe
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/_markupsafe/_native.py/escape