On Wed, Aug 25, 2010 at 8:06 AM, Dobrysmak <[email protected]> wrote:
> Hi guys.
>
> As in the title. How to strip HTML tags in a string in Pylons?

In WebHelpers 1.2, 'literal' objects have a .striptags() method,
inherited from MarkupSafe. This will probably be the recommended way
going forward, but two older helpers also exist:
    webhelpers.html.tools.strip_tags()
    webhelpers.converters.sanitize()

(Why two helpers that do effectively the same thing? Because I forgot
one existed when I added the other. :)

-- 
Mike Orr <[email protected]>

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

Reply via email to