[lang-ref] ( escape_html ) ( python )

def test_escape_html():
    # html.escape
    import html
    s = 'a < b'
    assert html.escape(s, quote=True) == 'a &lt; b'