From cd4ba428dabab709a872ea1c41e7bbb251a729ef Mon Sep 17 00:00:00 2001 From: grenagit <46225780+grenagit@users.noreply.github.com> Date: Sat, 21 Jan 2023 12:46:03 +0100 Subject: [PATCH] [Alert Module] Fix HTML message (#3018) Solve #2828 by adding nunjucks safe filter to the message Co-authored-by: Grena Co-authored-by: Veeck --- CHANGELOG.md | 1 + modules/default/alert/templates/alert.njk | 2 +- modules/default/alert/templates/notification.njk | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cbd6b50..08bf17ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ _This release is scheduled to be released on 2023-04-01._ - Fix wrong day labels in envcanada forecast (#2987) - Fix for missing default class name prefix for customEvents in calendar - Fix weathergov provider hourly forecast (#3008) +- Fix message display with HTML code into alert module (#2828) - Fix typo into french translation ## [2.22.0] - 2023-01-01 diff --git a/modules/default/alert/templates/alert.njk b/modules/default/alert/templates/alert.njk index a748d268..0a49df8a 100644 --- a/modules/default/alert/templates/alert.njk +++ b/modules/default/alert/templates/alert.njk @@ -14,5 +14,5 @@ {% if title %}
{% endif %} - {{ message }} + {{ message | safe }} {% endif %} diff --git a/modules/default/alert/templates/notification.njk b/modules/default/alert/templates/notification.njk index 1d67bcda..af3adf26 100644 --- a/modules/default/alert/templates/notification.njk +++ b/modules/default/alert/templates/notification.njk @@ -5,5 +5,5 @@ {% if title %}
{% endif %} - {{ message }} + {{ message | safe }} {% endif %}