diff --git a/html/textroomtest.js b/html/textroomtest.js index bf95a260a7..7d5ae832ca 100644 --- a/html/textroomtest.js +++ b/html/textroomtest.js @@ -351,7 +351,7 @@ function sendPrivateMsg(username) { text: JSON.stringify(message), error: function(reason) { bootbox.alert(reason); }, success: function() { - $('#chatroom').append('

[' + getDateString() + '] [whisper to ' + display + '] ' + result); + $('#chatroom').append('

[' + getDateString() + '] [whisper to ' + display + '] ' + escapeXmlTags(result)); $('#chatroom').get(0).scrollTop = $('#chatroom').get(0).scrollHeight; } });