a Sensio Labs Product

The flexible, fast, and secure
template engine for PHP

Filters » raw

Questions & Feedback

License

Creative Commons License Twig documentation is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.

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:

1
2
3
{% autoescape %}
    {{ var|raw }} {# var won't be escaped #}
{% endautoescape %}
This website is powered by PHP and Twig. The Twig logo is © 2010-2012 Sensio Labs