Yes, absolutely.

Use the builtin template filter:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#safe

All output by default from Django is auto escaped to avoid possibly
malicious html/javascript injection. An example would be by starting a
comment with a <b>, and not closing the tag. This would leave the rest
of the page potentially bolded.

When you output to a template you can simply mark the output as 'safe'
and it won't be autoescaped.

Hope that helps,

- Eric

On Sep 29, 12:07 pm, bentford <blarg...@gmail.com> wrote:
> Hello,
>
> Is it possible to allow HTML to be entered in the admin interface? I
> do not want it to be encoded with &lt; &gt; etc..
>
> I've looked in the documentation and searched on google, no answer
> found.
>
> Thanks,
>
> Ben
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to