{% extends 'email/layout.html.twig' %} {# Everything on `bodyHtml` was escaped by App\Email\MailBodyRenderer before any tag was introduced, which is what makes |raw safe here - same contract as email/generic.html.twig. Do not pass anything into this template that did not come out of that renderer. #} {% block body %} {{ bodyHtml | raw }} {% endblock %}