I use the Symfony2.1 and have the default config.yml
{# but static strings are never escaped #}
{{ '<h3>foo</h3>'|trans }}
But if I copy and paste it into the my empty template (without any additional autoescapes or another) I got the escaped string <h3>foo</h3>. What I do wrong?
{{ 'Hello <strong>%var%</strong>'|trans({'%var%' : var}) }}. Now to do this I have to write:{{ 'Hello <strong>%var%</strong>'|trans({'%var%' : var|e})|raw }}