All html in commerce-stock-notifications-message.html.twignis being escaped

Created on 26 June 2025, 14 days ago

Problem/Motivation

This is a follow-up of 📌 Provide a template to customize the content of the notification mail Needs review . Before that MR was merged, there was a change so that the contents of the new theme commerce_stock_notifications_message are being filtered using Twig. But this caused a regression for me. All HTML in commerce-stock-notifications-message.html.twig is being escaped, meaning not only the variables such as $message, but all HTML in the twig file.

In that issue, it is being mentioned that a workaround would be to use the |raw filter, but i guess that only applies to the message from config, not the actual twig template.

I'm using symphony_mailer to send emails.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland luksak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024