i think u can use markdown
{{ html_text|markup }}
or
{{ html_text|textile }}
try this
2009/3/6 nils
>
> 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 s
Yeah, the default behaviour in django templates is to escape html
code, so if you render something like hello, the template
will convert it to ... 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
wit
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
Thanks Gents! Exactly what I was looking for.
Brandon
On Apr 25, 3:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> You may also want to look at this thread for a more extensive
> discussion of exactly this
> subject:http://groups.google.com/group/django-users/browse_thread/thread/242c..
You may also want to look at this thread for a more extensive
discussion of exactly this subject:
http://groups.google.com/group/django-users/browse_thread/thread/242cc194a1a7b6fe/81fb9a60ffb8d233?#81fb9a60ffb8d233
On Apr 25, 1:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> There is a sa
There is a safe filter, so {{ myvar|safe }}. You can also look into
using the autoescape tag, too. Check out the documentation listed
here:
http://www.djangoproject.com/documentation/templates/#automatic-html-escaping
Hope that helps!
-Eric Florenzano
On Apr 24, 11:57 pm, Brandon Taylor <[EMA
Hi everyone,
I've got TinyMCE integrated into my admin, and is working great, but
when I output the HTML for the record into my template, the HTML tags
are being rendered as plain text, as in, all of the tags are visible.
What can I do to allow HTML stored in my database to render properly
in th
7 matches
Mail list logo