'Unescape markup again into an unicode string.  This also resolves
known HTML4 and XHTML entities:
>>> Markup("Main &raquo; <em>About</em>").unescape()
u\'Main \xbb <em>About</em>\''

def unescape(self):

    from markupsafe._constants import HTML_ENTITIES
    def handle_match(m):
        name = m.group(1)
        if (name in HTML_ENTITIES):
            return unichr(HTML_ENTITIES[name])
        try:
            if (name[:2] in ('#x', '#X')):
                return unichr(int(name[2:], 16))
            elif name.startswith('#'):
                return unichr(int(name[1:]))
        except ValueError:
            pass
        return u''
    return _entity_re.sub(handle_match, unicode(self))
