Skip to content

Commit 3ca1386

Browse files
mickaelandrieuweaverryan
authored andcommitted
Facelift of book/controller.rst issue #2377
1 parent 1f82d0a commit 3ca1386

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

book/templating.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,13 @@ is being escaped for HTML output.
13001300
In some cases, you'll need to disable output escaping when you're rendering
13011301
a variable that is trusted and contains markup that should not be escaped.
13021302
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 }}
13051310
13061311
You can also disable output escaping inside a ``{% block %}`` area or
13071312
for an entire template. For more information, see `Output Escaping`_ in

0 commit comments

Comments
 (0)