Can I do it inside the template or must it be done in python code?
I have a variable that may contain da<ngero>u&s chars. How do I escape it in jinja2?
e.g.
{{ user.username|e }}
Pipe it through the |e filter
|e
Docs: