On Fri, May 4, 2012 at 1:55 PM, Emily Namugaanyi <enemi...@gmail.com> wrote: > I am trying to display markdown in my html but it is returning a body > with html tags: > This is what is happening... > > code in the > > <!-- This is the template --> > > > <div class="tab-pane fade" id="guidelines"> > > {% for guideline in guidelines %} > {% load markup %} > <b> Question:</b> {{ guideline.question }} <br/> > <b> Answer:</b> {{ guideline.answer_markdown }} <br/
When outputting content that contains HTML, and you want the HTML to be rendered, not escaped, you either need to turn off escaping, or mark the content as safe to output: https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#safe Cheers Tom -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.