parameters: (str)
return_statement: return final_text
docstring: Returns the string with HTML tags stripped.
  
    Args:
      str: An html string.
  
    Returns:
      The html string with all tags stripped. If there was a parse error, returns
      the text successfully parsed so far.
docstring_summary: Returns the string with HTML tags stripped.
docstring_tokens: Returns the string with HTML tags stripped .
function: def StripTags(str):
    """Returns the string with HTML tags stripped.
  
    Args:
      str: An html string.
  
    Returns:
      The html string with all tags stripped. If there was a parse error, returns
      the text successfully parsed so far.
    """
    # Brute force approach to stripping as much HTML as possible. If there is a
    # parsing error, don't strip text before parse error position, and continue
    # trying from there.
    final_text = ''
    finished = False
    while not finished:
      try:
        strip = _HtmlStripper()
        strip.feed(str)
        strip.close()
        str = strip.get_output()
        final_text += str
        finished = True
      except HTMLParser.HTMLParseError, e:
        final_text += str[:e.offset]
        str = str[e.offset + 1:]
  
    return final_text
function_tokens: def StripTags ( str ) : # Brute force approach to stripping as much HTML as possible. If there is a # parsing error, don't strip text before parse error position, and continue # trying from there. final_text = '' finished = False while not finished : try : strip = _HtmlStripper ( ) strip . feed ( str ) strip . close ( ) str = strip . get_output ( ) final_text += str finished = True except HTMLParser . HTMLParseError , e : final_text += str [ : e . offset ] str = str [ e . offset + 1 : ] return final_text