parameters: (self)
return_statement: return _entity_re.sub(handle_match, text_type(self))
docstring: 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>'
docstring_summary: r"""Unescape markup again into an text_type string.  This also resolves
          known HTML4 and XHTML entities:
docstring_tokens: r Unescape markup again into an text_type string . This also resolves known HTML4 and XHTML entities :
function: 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 _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))
function_tokens: def unescape ( self ) : from _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 ) )