Tuesday, May 3, 2011

escaping (where is the exit)

I got data from the database in a page, I then merge it as string
substitution though another template and end up with double escaping because
the escaping is automatic, the only place I can try to de escape is the
2ndary template, I have tried
{% autoescape on %}{{ content }}{% endautoescape %}
{% autoescape off %}{{ content }}{% endautoescape %}
{{ content|escape }}
{{ content|force_escape }}
even tried
{{ content|safe }}

any ideas please?
--
View this message in context: http://old.nabble.com/escaping-%28where-is-the-exit%29-tp31531487p31531487.html
Sent from the django-users mailing list archive at Nabble.com.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment