On Fri, 2009-02-13 at 20:15 -0800, zweb wrote:
> I have tiny mce editor instead of text area for description field. For
> rich text markup it generates and stores text with HTML markup in
> database.
>
> Now When I display this field data as {{form.description}}, I think
> django automatically converts <> to < > for security reasons.
> Any way to stop it or escape it so that html tags do does not show on
> web page?
The feature is called autoescaping. You want to mark the output
variables, in your case, as "safe".
Have a read of the autoescaping documentation for details.
http://docs.djangoproject.com/en/dev/topics/templates/#id2
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---