There are no implemented interfaces.
entitydefs
(type:
dict
)
{'amp': '&', 'lt': '<', 'gt': '>', 'apos': "'", 'quot': '"'}
close()
Handle the remaining data.
error(message)
feed(data)
Call this as often as you want, with as little or as much text
as you want (may include
). (This just saves the text,
all the processing is done by goahead().)
finish_endtag(tag)
finish_shorttag(tag, data)
finish_starttag(tag, attrs)
get_starttag_text()
getpos()
Return current line number and offset.
goahead(end)
handle_charref(name)
Handle character reference, no need to override.
handle_comment(data)
handle_data(data)
handle_decl(decl)
handle_endtag(tag, method)
handle_entityref(name)
Handle entity references.
There should be no need to override this method; it can be tailored by setting up the self.entitydefs mapping appropriately.
handle_pi(data)
handle_starttag(tag, method, attrs)
parse_comment(i, report=1)
parse_declaration(i)
parse_endtag(i)
parse_marked_section(i, report=1)
parse_pi(i)
parse_starttag(i)
report_unbalanced(tag)
reset()
Reset this instance. Loses all unprocessed data.
setliteral(*args)
Enter literal mode (CDATA).
Intended for derived classes only.
setnomoretags()
Enter literal mode (CDATA) till EOF.
Intended for derived classes only.
unknown_charref(ref)
unknown_decl(data)
unknown_endtag(tag)
unknown_entityref(ref)
unknown_starttag(tag, attrs)
updatepos(i, j)