def xhtml_unescape(value):
 return re.sub('&(#?)(\\w+?);', _convert_entity, _unicode(value))

def xhtml_unescape ( value ) : return re . sub ( '&(#?)(\\w+?);' , _convert_entity , _unicode ( value ) )
un-escapes an xml-escaped string .