(data, entities={})
return data.replace("&amp;", "&")
Unescape &amp;, &lt;, and &gt; in a string of data.

    You can unescape other strings of data by passing a dictionary as
    the optional entities parameter.  The keys and values must all be
    strings; each key will be replaced with its corresponding value.
Unescape &amp;, &lt;, and &gt; in a string of data.
Unescape &amp ; &lt ; and &gt ; in a string of data .
def unescape(data, entities={}):
    """Unescape &amp;, &lt;, and &gt; in a string of data.

    You can unescape other strings of data by passing a dictionary as
    the optional entities parameter.  The keys and values must all be
    strings; each key will be replaced with its corresponding value.
    """
    data = data.replace("&lt;", "<")
    data = data.replace("&gt;", ">")
    if entities:
        data = __dict_replace(data, entities)
    # must do ampersand last
    return data.replace("&amp;", "&")
def unescape ( data , entities = { } ) : data = data . replace ( "&lt;" , "<" ) data = data . replace ( "&gt;" , ">" ) if entities : data = __dict_replace ( data , entities ) # must do ampersand last return data . replace ( "&amp;" , "&" )