(self)
return _entity_re.sub(handle_match, text_type(self))
r"""Unescape markup again into an text_type string.  This also resolves
        known HTML4 and XHTML entities:

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

        >>> Markup("Main &raquo; <em>About</em>").unescape()
        u'Main \xbb <em>About</em>'
        """
        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, text_type(self))
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 , text_type ( self ) )