Commit 6c4293c4f6fdb44a8ffb34c57a1372e2d5db129e

Authored by Rodrigo Souto
2 parents 53e21f85 d46b83c6

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, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\r?\n/g, '<br>');
102 103 body = $().emoticon(body);
103 104 body = linkify(body, {
104 105 callback: function(text, href) {
... ...