And even then, |safe is exactly the same as |noescape
On Monday, January 25, 2016 at 4:33:01 PM UTC+1, Tim Graham wrote:
>
> Is there some reason you cannot mark the string safe in Python code using
> one of the following methods? I think that's where escaping logic belongs.
>
>
> https://docs.dj
Is there some reason you cannot mark the string safe in Python code using
one of the following methods? I think that's where escaping logic belongs.
https://docs.djangoproject.com/en/stable/ref/utils/#django.utils.html.format_html
https://docs.djangoproject.com/en/stable/ref/utils/#django.utils.s
Hi All,
I want to add a new filter names 'noescape' to django template. After that,
{{ |noescape }}
will output the context variable without auto escape.
It will be more convenient than
{% autoescape off %}{{ }} {% endautoescape %}
Thanks and regards,
Hans
--
You received this message be