Fixes chat messages

Fixes issue #177 and also show new lines
This commit is contained in:
Mihail Diordiev 2014-12-08 00:41:05 +02:00
parent 7f057377d0
commit 60e7482df1
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);