code: def strip_bad_html(self):
          
          out = self.string
          while not String(out).is_well_formatted():
              out = out.replace(":", "") \
                  .replace("\\'", "\'") \
                  .replace("\\n", "") \
                  .replace("\\r", "") \
                  .replace("\\t", "") \
                  .replace("\n", "") \
                  .replace("\r", "") \
                  .replace("\t", "") \
                  .replace("  ", " ") \
                  .strip()
  
          return str(out)
docs: Strips string of all HTML elements
      
          :return: Given string with raw HTML elements removed