Skip to content

Commit e5b1744

Browse files
bug #49401 [TwigBridge] Fix raw content rendering in HTML notification emails (1ed)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge] Fix raw content rendering in HTML notification emails | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | Applying nl2br on raw HTML seems wrong to me and it also makes raw ineffective. Commits ------- f301f1db83 [TwigBridge] Fix raw content rendering in HTML notification emails
2 parents 355db9a + a8be6ae commit e5b1744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Email/zurb_2/notification/body.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{% if markdown %}
2727
{{ include('@email/zurb_2/notification/content_markdown.html.twig') }}
2828
{% else %}
29-
{{ (raw ? content|raw : content)|nl2br }}
29+
{{ raw ? content|raw : content|nl2br }}
3030
{% endif %}
3131
{% endblock %}
3232

0 commit comments

Comments
 (0)