[Tutor] Stripping HTML tags.
pythontut at pusspaws.net
Fri Apr 16 19:28:55 EDT 2004
Alan Gauld wrote:
>>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...
Thanks for that ... I looked at that module but did not think it could
do what I wanted.
I will take another look :-)
More information about the Tutor