aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 2ac4f4f6..71972a92 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -1192,13 +1192,10 @@ void Courtroom::chat_tick()
else
{
QString f_character = f_message.at(tick_pos);
+ f_character = f_character.toHtmlEscaped();
if (f_character == " ")
ui_vp_message->insertPlainText(" ");
- else if (f_character == "<")
- ui_vp_message->insertHtml("&lt;");
- else if (f_character == ">")
- ui_vp_message->insertHtml("&gt;");
else if (m_chatmessage[TEXT_COLOR].toInt() == RAINBOW)
{
QString html_color;