code: def toString(self):
          
          output = ""
  
          if self.childs or self.isOpeningTag():
              output += self.tagToString()
  
              for c in self.childs:
                  output += c.toString()
  
              if self.endtag is not None:
                  output += self.endtag.tagToString()
  
          elif not self.isEndTag():
              output += self.tagToString()
  
          return output
docs: Returns almost original string.
  
          If you want prettified string, try :meth:`.prettify`.
  
          Returns:
              str: Complete representation of the element with childs, endtag \
                   and so on.