Python's equivalent to PHP's strip_tags?
There is no such thing in the Python standard library. It's because Python is a general purpose language while PHP started as a Web oriented language.
Nevertheless, you have 3 solutions:
re.sub(r'<[^>]*?>', '', value) can be a quick and dirty solution.Using BeautifulSoup
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup(htmltext)
''.join([e for e in soup.recursiveChildGenerator() if isinstance(e,unicode)])
You won't find many builtin Python equivalents for builtin PHP HTML functions since Python is more of a general-purpose scripting language than a web development language. For HTML processing, BeautifulSoup is generally recommended.