Skip to content

Commit

Permalink
HTML tags in cudi messages will now be rendered correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
d1ff1cult0 committed Oct 6, 2024
1 parent 470e5ab commit e2aa6bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module/CommonBundle/Resources/views/common/index/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@
<div class="opening_hour_message">
<h2>Cudi - {{ translate('Opening Hours') }}</h2>
{% for message in cudi.messages %}
<div style="white-space: pre-wrap;">{{ message.getContent(language) }}
<div style="white-space: pre-wrap;">
{% autoescape false %}
{{ message.getContent(language) }}
{% endautoescape %}
</div>
{% endfor %}

Expand Down

0 comments on commit e2aa6bc

Please sign in to comment.