diff --git a/files/routes/chat.py b/files/routes/chat.py
index ff7a2bec4..276bd2baf 100644
--- a/files/routes/chat.py
+++ b/files/routes/chat.py
@@ -25,14 +25,15 @@ if "load_chat" in sys.argv:
@auth_required
def speak(data, v):
global messages
- data = data[:1000].strip()
- if not data: abort(403)
+ text = data[:1000].strip()
+ if not text: abort(403)
data={
"avatar": v.profile_url,
"username":v.username,
"namecolor":v.namecolor,
- "text":sanitize(data),
+ "text":text,
+ "text_html":sanitize(text),
}
messages.append(data)
diff --git a/files/templates/chat.html b/files/templates/chat.html
index f6db9a1b4..fce829efc 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -47,7 +47,12 @@
{{m['username']}}