I\'m using Jinja2 to create Golang code using Python3. I need to pass some parameters in quotes to a function in my final code, but Jinja2 isn\'t escaping double quotes. My pyth
The alternative way to do this would have been
e.({{ function|safe }})
which prevents auto-escaping.
This is due to Jinja2 autoescaping. As described in the documentation, the recommended way to avoid this is to wrap the text in a Markup object.
Markup