[Tutor] Stripping HTML tags.

Dave S 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
>how
>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.
>
>  
>
Thanks for that ... I looked at that module but did not think it could 
do what I wanted.
I will take another look :-)

Dave



More information about the Tutor mailing list