Strip HTML tags?
Fredrik Lundh
fredrik at pythonware.com
Sun Dec 14 03:25:49 EST 2003
"Fazer" <faizan at jaredweb.com> 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:
http://effbot.org/zone/librarybook-index.htm
and the "syndication tweaks" entry on this page:
http://online.effbot.org/2003_08_01_archive.htm#20030811
for a RE-based solution, see:
http://effbot.org/zone/re-sub.htm#strip-html
</F>
More information about the Python-list
mailing list