code: def dehtml(text):
      '''Remove HTML tag in input text and format the texts
      accordingly. '''
      try:
          parser = _DeHTMLParser()
          parser.feed(text)
          parser.close()
          return parser.text()
      except Exception as e:
          env.logger.warning(f'Failed to dehtml text: {e}')
          return texf dehtml(text):
      '''Remove HTML tag in input text and format the texts
      accordingly. '''
      try:
          parser = _DeHTMLParser()
          parser.feed(text)
          parser.close()
          return parser.text()
      except Exception as e:
          env.logger.warning(f'Failed to dehtml text: {e}')
          return text
docs: Remove HTML tag in input text and format the texts
      accordingly.