HTML parser/reformatter/filter wanted
jam
jam at newimage.com
Tue Jul 13 18:18:41 EDT 1999
More information about the Python-list mailing list
Tue Jul 13 18:18:41 EDT 1999
- Previous message (by thread): HTML parser/reformatter/filter wanted
- Next message (by thread): Wrapping C++ w/inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jul 13, 1999 at 09:57:29PM +0200, Alexander Staubo wrote: > > I'm looking for a piece of Python code that can filter HTML and tie up > unclosed tags. > > By way of explanation: I'm building a bulletin-board-ish solution where > users should be able to post HTMl-formatted submissions; I only want to > enable a subset of HTML (eg., <b>, <i> and so forth), plus I want to make > sure text-level tags are ended correctly. I could sit down and write a > smaller HTML parser, but I don't want to reinvent wheels if I can just > grab this stuff off the shelf. > greetings, I'm not sure if it will do *exactly* what you want, but a good starting point is probably 'htmllib.py' in the standard distribution. it will at least give you something to build on. regards, J -- || visit gfd <http://quark.newimage.com/> || psa member #293 <http://www.python.org/> || New Image Systems & Services, Inc. <http://www.newimage.com/>
- Previous message (by thread): HTML parser/reformatter/filter wanted
- Next message (by thread): Wrapping C++ w/inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list