> Aymeric Augustin:
> 
>> On 26 Sep 2017, at 22:56, Jonas Haag <jo...@lophus.org 
>> <mailto:jo...@lophus.org>> wrote:
>> 
>> Without having had a look at any of the links you’ve posted, this does NOT 
>> work in Jinja2 the way I suggested:
>> 
>> >>> jinja2.Template('{{foo}}').render({'foo': Money('1', '$')})
>> '$ 1'
>> 
>> So whatever the changes for better __html__ interoperability were, they seem 
>> unrelated to what I’m suggesting.
> 
> 
> That's because Jinja2 priorizes speed over security and disables autoescaping 
> by default. To trigger __html__, you need to enable it.

I see, thanks for pointing this out!

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/FB1E71B7-80D9-46AA-86A7-F8EC68D44684%40lophus.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to