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);