Yeah, the default behaviour in django templates is to escape html code, so if you render something like <h1>hello</h1>, the template will convert it to <h1> ... etc. This is for prevent the script inyections in forms. So if you want to show the raw html as is in the database you have no escape the text with the safe filter:
{{ html_text|safe }} On 6 mar, 07:15, nils <nils.ryd...@bodenco.se> wrote: > Im running django-1.0.2-final with the django.contrib.admin in my > application. > It's a blog-like application so i implemented tiny-mce (wysiwyg- > editor) in the admin interface. > It saves/deletes/updates as supposed, but the view+template does not > render the HTML-tags, the HTML-tags renders as plain text. > > Any one know why? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---