HTML tags in XML translation HTML tags in XML translation symfony symfony

HTML tags in XML translation


In Twig, you can include translation and disable autoescape, but you have to keep control of its content as it could be a security lack...

{% autoescape false %}{{ 'your.translation.id'|trans }}{% endautoescape %}