File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1300,8 +1300,13 @@ is being escaped for HTML output.
1300
1300
In some cases, you'll need to disable output escaping when you're rendering
1301
1301
a variable that is trusted and contains markup that should not be escaped.
1302
1302
Suppose that administrative users are able to write articles that contain
1303
- HTML code. By default, Twig will escape the article body. To render it normally,
1304
- add the ``raw `` filter: ``{{ article.body|raw }} ``.
1303
+ HTML code. By default, Twig will escape the article body.
1304
+
1305
+ To render it normally, add the ``raw `` filter:
1306
+
1307
+ .. code-block :: jinja
1308
+
1309
+ {{ article.body|raw }}
1305
1310
1306
1311
You can also disable output escaping inside a ``{% block %} `` area or
1307
1312
for an entire template. For more information, see `Output Escaping `_ in
You can’t perform that action at this time.
0 commit comments