code: def _parse(self, str):
          
          
          
          str = replace_entities(str)
          str = strip_tags(str)
          str = collapse_spaces(str)
          return str
docs: Parses the text data from an XML element defined by tag.