Skip to content

Commit c7e2145

Browse files
committed
[#6539] Some small improvements
1 parent 186525f commit c7e2145

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

reference/configuration/twig.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,14 @@ individually in the templates).
130130

131131
If set to a string, the template contents are escaped using the strategy with
132132
that name. Allowed values are ``html``, ``js``, ``css``, ``url``, ``html_attr``
133-
and ``filename``. The default value is ``filename`` and it escapes contents
134-
according to the filename extension (e.g. it uses ``html`` for ``*.html.twig``
135-
templates and ``js`` for ``*.js.html`` templates).
133+
and ``filename``. The default value is ``filename``. This strategy escapes
134+
contents according to the filename extension (e.g. it uses ``html`` for
135+
``*.html.twig`` templates and ``js`` for ``*.js.html`` templates).
136136

137137
.. tip::
138138

139-
See :ref:`config-twig-autoescape-service` and :ref:`config-twig-autoescape-service-method`
140-
to define your own escaping strategy.
141-
142-
.. _config-twig-autoescape-service:
139+
See `autoescape_service`_ and `autoescape_service_method`_ to define your
140+
own escaping strategy.
143141

144142
autoescape_service
145143
~~~~~~~~~~~~~~~~~~
@@ -154,8 +152,6 @@ for HTML and the contents of ``*.js.twig`` are escaped for JavaScript.
154152
This option allows to define the Symfony service which will be used to determine
155153
the default escaping applied to the template.
156154

157-
.. _config-twig-autoescape-service-method:
158-
159155
autoescape_service_method
160156
~~~~~~~~~~~~~~~~~~~~~~~~~
161157

0 commit comments

Comments
 (0)