def escape(html, force=False):
    if hasattr(html, '__html__') and not force:
        return html
    if html in NOTHING:
        return ''
    else:
        return to_string(html).replace('&', '&amp;').replace(
            '<', '&lt;').replace('>', '&gt;').replace("'", '&#39;').replace(
            '"', '&quot;')
Returns the given HTML with ampersands,
dataset/ETHPy150Open quantmind/pulsar/pulsar/utils/html.py/escape