[Alert Module] Fix HTML message (#3018)

Solve #2828 by adding nunjucks safe filter to the message

Co-authored-by: Grena <grena@grenabox.fr>
Co-authored-by: Veeck <github@veeck.de>
This commit is contained in:
grenagit 2023-01-21 12:46:03 +01:00 committed by GitHub
parent ee8695637b
commit cd4ba428da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ _This release is scheduled to be released on 2023-04-01._
- Fix wrong day labels in envcanada forecast (#2987) - Fix wrong day labels in envcanada forecast (#2987)
- Fix for missing default class name prefix for customEvents in calendar - Fix for missing default class name prefix for customEvents in calendar
- Fix weathergov provider hourly forecast (#3008) - Fix weathergov provider hourly forecast (#3008)
- Fix message display with HTML code into alert module (#2828)
- Fix typo into french translation - Fix typo into french translation
## [2.22.0] - 2023-01-01 ## [2.22.0] - 2023-01-01

View File

@ -14,5 +14,5 @@
{% if title %} {% if title %}
<br/> <br/>
{% endif %} {% endif %}
<span class="light bright small">{{ message }}</span> <span class="light bright small">{{ message | safe }}</span>
{% endif %} {% endif %}

View File

@ -5,5 +5,5 @@
{% if title %} {% if title %}
<br/> <br/>
{% endif %} {% endif %}
<span class="light bright small">{{ message }}</span> <span class="light bright small">{{ message | safe }}</span>
{% endif %} {% endif %}