import re


def _replace_ampersands(html):
    """Replace ampersand symbols in html"""
    html = re.sub('&amp;', '&', html, flags=re.DOTALL)
    html = re.sub('&quot;', '"', html, flags=re.DOTALL)
    # html = re.sub('&amp;', ' ', html, flags=re.DOTALL)
    # html = re.sub('&quot;', ' ', html, flags=re.DOTALL)
    html = re.sub('&lt;', '\<', html)
    html = re.sub('&gt;', '\>', html)
    return html