code: def handle_data(self, data):
          
          if self.current_parent_element['tag'] == '':
              self.cleaned_html += '<p>'
              self.current_parent_element['tag'] = 'p'
  
          self.cleaned_html += data
docs: Called by HTMLParser.feed when text is found.