On Wed, Aug 25, 2010 at 5:06 PM, Dobrysmak <lukasz.szyman...@gmail.com> wrote:
> As in the title. How to strip HTML tags in a string in Pylons?

You can do it using my module http://www.oluyede.org/files/htmlstripper.py

import htmlstripper
print htmlstripper.stripHTML("<HTML>ABBBBB</HTML>", 'ascii')
'ABBBBB'

HTH

-- 
Lawrence Oluyede
[eng] http://oluyede.org - http://twitter.com/lawrenceoluyede
[ita] http://www.neropercaso.it
[flickr] http://www.flickr.com/photos/rhymes

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to