i want the following functionality.
input : this is test bold text normal text expected output: this is test normal text
With BeautifulSoup:
from BeautifulSoup import BeautifulSoup ''.join(BeautifulSoup(page).findAll(text=True))
Found at http://www.ghastlyfop.com/blog/2008/12/strip-html-tags-from-string-python.html