From 60e7482df14f9b6c412186f5f78c974ef86a346c Mon Sep 17 00:00:00 2001 From: Mihail Diordiev Date: Mon, 8 Dec 2014 00:41:05 +0200 Subject: [PATCH] Fixes chat messages Fixes issue #177 and also show new lines --- chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.js b/chat.js index 2dee6c514..f93b61f8c 100644 --- a/chat.js +++ b/chat.js @@ -90,7 +90,7 @@ var Chat = (function (my) { } //replace links and smileys - var escMessage = Util.escapeHtml(message); + var escMessage = message.replace(//g, '>').replace(/\n/g, '
'); //Strophe already escapes special symbols on sending, so we escape here only tags to avoid double & var escDisplayName = Util.escapeHtml(displayName); message = processReplacements(escMessage);