Files
Twig/doc/filters/raw.rst
Fabien Potencier 8d86ddeb1a Merge branch '2.x' into 3.x
* 2.x:
  fixed doc format
  tweaked doc markup
  tweaked escape docs
2019-04-25 14:28:32 +02:00

13 lines
332 B
ReStructuredText

``raw``
=======
The ``raw`` filter marks the value as being "safe", which means that in an
environment with automatic escaping enabled this variable will not be escaped
if ``raw`` is the last filter applied to it:
.. code-block:: twig
{% autoescape %}
{{ var|raw }} {# var won't be escaped #}
{% endautoescape %}