Escape jinja2 syntax in a jinja2 template Escape jinja2 syntax in a jinja2 template flask flask

Escape jinja2 syntax in a jinja2 template


You can disable interpretation of tags inside a {% raw %} block:

{% raw %}Anything in this block is treated as raw text,including {{ curly braces }} and{% other block-like syntax %}{% endraw %}

See the Escaping section of the template documentation.