Joy, look into the database if it is being saved without escaping. If
that's the case you need to render it without escaping marking it as safe
with the safe filter. For example:
This will not be escaped: {{ data|safe }}
or you can use a template block like this:
{% autoescape off %}
Hello {{ name }}{% endautoescape %}
Read more about it
at:
https://docs.djangoproject.com/en/1.4/topics/templates/#automatic-html-escaping
If you wan't some text field where you can format take a look at:
https://github.com/aljosa/django-tinymce
or
https://github.com/shaunsephton/django-ckeditor
El jueves, 6 de diciembre de 2012 15:07:32 UTC-3, joy escribió:
>
> 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/-/EDyVq6fWZ28J.
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.