HTML is not really stripped. It's just encoded. If you want to render it on
the frontend you can use
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std:templatefilter-escapeor
safe filter e.g. {{ your_var|safe }}

Cheers,

-mario
www.zenbookings.com


On 7 December 2012 05:10, Jonathan Baker <[email protected]>wrote:

> The html is saved to the database, but is stripped out when the variable
> is rendered to the template to help prevent XSS attack. You can read more
> about it (including how to selectively disable the feature) here:
> https://docs.djangoproject.com/en/dev/topics/templates/#automatic-html-escaping
>
>
> On Thu, Dec 6, 2012 at 11:07 AM, joy <[email protected]> wrote:
>
>> May i use html inside a text area? (i need some link in my text but the
>> TextField of my object Text gives me back the html without formatting it)
>>
>> Is there any workaround?
>>
>> Joy
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/IDV8W_JN-9YJ.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> Jonathan D. Baker
> Developer
> http://jonathandbaker.com
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to