code: def html_entity_decode(self):
          
          pattern = re.compile(r"&#(\w+?);")
          string = pattern.sub(self.html_entity_decode_char, self.my_string)
          return pattern.sub(self.html_entity_decode_codepoint, string)
docs: entry point of this set of tools
              to decode html entities