Trees | Indices | Help |
|
---|
|
markupbase.ParserBase --+ | HTMLParser
Find tags and other markup and call handler functions. Usage: p = HTMLParser() p.feed(data) ... p.close() Start tags are handled by calling self.handle_starttag() or self.handle_startendtag(); end tags by self.handle_endtag(). The data between tags is passed from the parser to the derived class by calling self.handle_data() with the data as argument (the data may be split up in arbitrary chunks). Entity references are passed by calling self.handle_entityref() with the entity reference as the argument. Numeric character references are passed to self.handle_charref() with the string containing the reference as the argument.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
CDATA_CONTENT_ELEMENTS =
|
|||
__starttag_text = None
|
|||
Inherited from |
|
Initialize and reset this instance.
|
Reset this instance. Loses all unprocessed data.
|
Feed data to the parser. Call this as often as you want, with as little or as much text as you want (may include ' '). |
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:41:41 2008 | http://epydoc.sourceforge.net |