Commit 6c4293c4f6fdb44a8ffb34c57a1372e2d5db129e
Exists in
master
and in
28 other branches
Merge commit 'refs/merge-requests/325' of git://gitorious.org/noosfero/noosfero …
…into merge-requests/325
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
public/javascripts/chat.js
... | ... | @@ -99,6 +99,7 @@ jQuery(function($) { |
99 | 99 | }, |
100 | 100 | |
101 | 101 | render_body_message: function(body) { |
102 | + body = body.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r?\n/g, '<br>'); | |
102 | 103 | body = $().emoticon(body); |
103 | 104 | body = linkify(body, { |
104 | 105 | callback: function(text, href) { | ... | ... |