I must still be doing something wrong.. If my stored string is -> <b>hello</b>
If I include {{item.text}} in my template I get -> <b>hello</b> and if I include {{item.text|escape}} I get -> <b>hello</ b> but I am trying to achieve a bold "hello" On Nov 15, 5:31 pm, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > > I have some HTML in a DB field. How can I get it to display as > > rendered HTML in a Django template. > > > Is there a filter or tag that I should use before the {{variable}} tag > > in the Django template? > > In Django 0.96 (which is built into appengine) you need to use the > escape filter: > > {{ variable|escape }} > > In Djange 1.0 all variables are automatically > escaped:http://docs.djangoproject.com/en/dev/topics/templates/#automatic-html... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---