use |striptags

Udi


On Mar 28, 3:31 am, Anderson Santos Silva <[EMAIL PROTECTED]>
wrote:
> Hello everyone,
>
>    I have a field with a tinymce editor, so it saves html tags inside
> the field and this text is send by e-mail with an html and an
> alternative text version. So, I have to remove all the <> tags, how can
> I get this in place of putting all possible html code that I can
> remember as a parameter? There is at least a python/django variable with
> that? Or another way to get this done?
>
> Template HTML Version
>
> <div>
>    {{ highlights }}
> </div>
>
> Template Text Version
>
> {{ highlights|removetags:allhtmltags }}
>
> Thank you in advance
>
> Anderson


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to