I would generally recommend against storing html in the database, but
if you're going to, and if you KNOW that it's safe, you have to mark
it safe: {{ obj.stuff|safe }}


On Mar 29, 12:36 pm, gvernold <gvern...@googlemail.com> wrote:
> Hi fellow Djangoists
>
> I've got some content with embedded html tags in a database. When I
> pass the content for rendering with a template through the Django
> templating system the web page actually prints the html tags rather
> than parsing through the browser (for instance <h1> actually prints
> <h1> rather than creating headed text in the browser). Should I
> presume that I have to create all html in the templates or is there a
> way to build html code inside a view and then pass it to a template?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to