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" alt="sample image" width="530" height="392" /></p> <p> </p> I would like to see it as plain text. Any help would be appreciated. On Nov 7, 1:07 am, gontran <[EMAIL PROTECTED]> wrote: > Sorry but I was working with an old documentation! > I fixed it with th e filter 'safe' > > thank you for the quick answer > > On 6 nov, 17:48, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > > > On Thu, Nov 6, 2008 at 2:16 PM, gontran <[EMAIL PROTECTED]> wrote: > > > > hello, > > > > I just started to learn django, so my question may be stupid: > > > > In my template, I would like to display a html string (stored in my > > > database). My problem is that it displays the string but it > > > automatically escapes the html tags. > > > > for example, if my string is: <p>my text</p> > > > instade of showing: my text > > > it shows: <p>my text</p> > > > > any idea to fix that? > > > Searching over the documentation with terms like "automatically > > escaping" or "autoescaping" > > gives this > > >http://docs.djangoproject.com/en/dev/topics/templates/ > > > as the first hit. Unsurprisingly, one of the sections in that document > > is "Automatic HTML escaping" > > > Try reading it to know how you can control the feature. > > > Regards, > > > -- > > Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---