Alexandre Bourget

geek joy

How to remove all HTML tags from a string

August 27, 2009 at 02:51 PM

Using BeautifulSoup, in one line, you can:

' '.join(h.BeautifulSoup.BeautifulSoup(some_content).findAll(text=True))
blog comments powered by Disqus