def html_unescape(text):
 return re.sub('&#?\\w+;', fixup, text)

def html_unescape ( text ) : return re . sub ( '&#?\\w+;' , fixup , text )
removes html or xml character references and entities from a text string .