Skip to content

Commit c4d6466

Browse files
authored
Render HTML contained in messages (#379)
For some messages it is useful to render the HTML such as for example if you have multiple messages and want to display them as list.
1 parent 6714b24 commit c4d6466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serveradmin/common/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
{% if messages %}
5959
{% for message in messages %}
6060
<div class="alert {{ message.level_tag|bootstrap_alert }} alert-dismissible fade show" role="alert">
61-
<strong>{{ message }}</strong>
61+
<strong>{{ message|safe }}</strong>
6262
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
6363
<span aria-hidden="true">&times;</span>
6464
</button>

0 commit comments

Comments
 (0)