[Tutor] Stripping HTML tags.

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Apr 16 18:22:22 EDT 2004

> It works but seems a bit messy. Is there a neater way to do this ?

Yes use the html parser module. There is some sample code that shows
to strip all tags to get plain text from an html file. And your
code is less reliable(tags spanning lines, nested tags etc) than
the html parser code...

Alan G.

More information about the Tutor mailing list