disable jinja autoescape for chat messages

This commit is contained in:
iou1name 2018-06-18 00:17:56 -04:00
parent 67a1b0471a
commit 0980554cff

View File

@ -54,6 +54,7 @@
<div id="chatPane" class="chat"> <div id="chatPane" class="chat">
<h1>Chat</h1> <h1>Chat</h1>
<div id="chatWindow" class="chat"> <div id="chatWindow" class="chat">
{% autoescape false %}
{% for message in messages %} {% for message in messages %}
<div class="message"> <div class="message">
<div class="messageHeader"> <div class="messageHeader">
@ -62,6 +63,7 @@
<div class="messageMessage">{{ message[4] }}</div> <div class="messageMessage">{{ message[4] }}</div>
</div> </div>
{% endfor %} {% endfor %}
{% endautoescape %}
</div> </div>
<div id="messageBox" class="chat"> <div id="messageBox" class="chat">
<textarea id="messageTextarea"></textarea> <textarea id="messageTextarea"></textarea>