8000 bug #49401 [TwigBridge] Fix raw content rendering in HTML notificatio… · melya/symfony@6895b5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6895b5c

Browse files
bug symfony#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 ------- f301f1d [TwigBridge] Fix raw content rendering in HTML notification emails
2 parents 9d6fdbf + f301f1d commit 6895b5c

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bridge/Twig/Resources/views/Email/zurb_2/notification

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/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)
0