code: def descape(self, string, defs=None):
          
          if defs is None:
              defs = html_entities.entitydefs
          f = lambda m: defs[m.group(1)] if len(m.groups()) > 0 else m.group(0)
          return self.html_entity_re.sub(f, string)
docs: Decodes html entities from a given string