[Tutor] HTML --> TXT?

Gauld,AJ,Alan,NEL1A GAULDAJ R alan.gauld@bt.com
Fri, 31 Mar 2000 12:24:11 +0100


> Is there a fairly simple Python-ish way to convert an HTML 
> file to text?

There is an html parser around which might do it for you 
but a quick n' dirty solution is to use the re module and 
simply parse out everything between '<' and '>'.

Make sure the regex you use covers line breaks etc tho'...

Alan G.