Reg strip_tags function in Python.
Terry Hancock
hancock at anansispaceworks.com
Sat May 7 03:21:45 EDT 2005
On Saturday 07 May 2005 01:25 am, praba kar wrote:
> In Php I can use strip_tags() function to strip out
> all html tags. I want to know that strip_tags()
> equivalent function in Python.
AFAIK, there's no such thing in the standard library,
however there is a very nice pure python module called
stripogram which provides functions both for completely
stripping HTML and for allowing a subset of it (if, for
example, you would like to keep bold and italic formatting,
but nothing else).
Just google for "stripogram", it's hosted at zope.org.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
More information about the Python-list
mailing list