code: def _toStringSubclass(self, text, subclass):
          
          self.endData()
          self.handle_data(text)
          self.endData(subclass)
docs: Adds a certain piece of text to the tree as a NavigableString
          subclass.