On Wed, Nov 12, 2008 at 4:20 AM, izzy <[EMAIL PROTECTED]> wrote:

>
> Hi.
>
> I'm new to Django. And I'm having problems with templates.
>
> I have a richtext field that stores HTML(using TinyMCE). But when I
> display it on template it simply renders all in html:
>
> <p><img title="Sample image" src="http://www.thesynapticleap.org/files/
> tsl/images/tinymce_0_0.png<http://www.thesynapticleap.org/files/tsl/images/tinymce_0_0.png>"
> alt="sample image" width="530"
> height="392" /></p>
> <p>&nbsp;</p>
>
> I would like to see it as plain text.
>
> Any help would be appreciated.
>

As mentioned earlier in the thread, you want to read what the docs have to
say about autoescaping, e.g.:

http://docs.djangoproject.com/en/dev/topics/templates/#id2

Karen

--~--~---------~--~----~------------~-------~--~----~
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