Merge pull request #208 from Zalmoxisus/master

Fixes chat messages
This commit is contained in:
bgrozev 2014-12-18 18:24:23 +02:00
commit 3b0fcad39b
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ var Chat = (function (my) {
}
//replace links and smileys
var escMessage = Util.escapeHtml(message);
var escMessage = message.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\n/g, '<br/>'); //Strophe already escapes special symbols on sending, so we escape here only tags to avoid double &amp;
var escDisplayName = Util.escapeHtml(displayName);
message = processReplacements(escMessage);