code: def _parse_entity(self):
          
          reset = self._head
          try:
              self._push(contexts.HTML_ENTITY)
              self._really_parse_entity()
          except BadRoute:
              self._head = reset
              self._emit_text(self._read())
          else:
              self._emit_all(self._pop())
docs: Parse an HTML entity at the head of the wikicode string.