Handling bad tags with SGMLParser
Walter Dörwald
walter at livinglogic.de
Thu Mar 7 16:23:32 EST 2002
Ken Causey wrote:
> I'm working with a piece of software which uses SGMLParser to parse
> HTML content so that a small subset of tags can be handled specially.
> The result is then passed onto a browser for rendering. Failure is
> not an option.
> [...]
You might either try sgmlop, which is part of PyXML
(http://sf.net/projects/pyxml/) or use Marc-André Lemburgs Python
version of tidy (http://www.lemburg.com/files/python/mxTidy.html)
Hope that helps!
Bye,
Walter Dörwald
More information about the Python-list
mailing list