Strip HTML tags?

Fredrik Lundh fredrik at
Sun Dec 14 09:25:49 CET 2003

"Fazer" <faizan at> wrote:

> I was wondering what would be the easiest way to strip away HTML tags from a string?
> Or how would I remove everything between < and > also the < , > as well using regex?

for htmllib and sgmllib examples, see chapter 5 here:

and the "syndication tweaks" entry on this page:

for a RE-based solution, see:


More information about the Python-list mailing list