Package Pyblosxom :: Module tools :: Class Stripper
[hide private]
[frames] | no frames]

Class Stripper

source code

markupbase.ParserBase --+    
                        |    
       sgmllib.SGMLParser --+
                            |
                           Stripper

SGMLParser that removes HTML formatting code.

Instance Methods [hide private]
 
__init__(self)
Initializes the instance.
source code
 
gettext(self)
Returns the buffer.
source code
 
handle_data(self, data)
Implements handle_data.
source code
 
unknown_endtag(self, tag)
Implements unknown_endtag.
source code
 
unknown_starttag(self, tag, attrs)
Implements unknown_starttag.
source code

Inherited from sgmllib.SGMLParser: close, convert_charref, convert_codepoint, convert_entityref, error, feed, finish_endtag, finish_shorttag, finish_starttag, get_starttag_text, goahead, handle_charref, handle_comment, handle_decl, handle_endtag, handle_entityref, handle_pi, handle_starttag, parse_endtag, parse_pi, parse_starttag, report_unbalanced, reset, setliteral, setnomoretags, unknown_charref, unknown_entityref

Inherited from sgmllib.SGMLParser (private): _convert_ref

Inherited from markupbase.ParserBase: getpos, parse_comment, parse_declaration, parse_marked_section, unknown_decl, updatepos

Inherited from markupbase.ParserBase (private): _parse_doctype_attlist, _parse_doctype_element, _parse_doctype_entity, _parse_doctype_notation, _parse_doctype_subset, _scan_name

Class Variables [hide private]

Inherited from sgmllib.SGMLParser: entity_or_charref, entitydefs

Inherited from sgmllib.SGMLParser (private): _decl_otherchars

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initializes the instance.
Overrides: sgmllib.SGMLParser.__init__

handle_data(self, data)

source code 
Implements handle_data. Appends data to the buffer.
Overrides: sgmllib.SGMLParser.handle_data

unknown_endtag(self, tag)

source code 
Implements unknown_endtag. Appends a space to the buffer.
Overrides: sgmllib.SGMLParser.unknown_endtag

unknown_starttag(self, tag, attrs)

source code 
Implements unknown_starttag. Appends a space to the buffer.
Overrides: sgmllib.SGMLParser.unknown_starttag