diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-03 13:54:08 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-03 13:54:08 +1100 |
commit | 1d71ab6d1aa7e5de00753f7b97a8158ee2bc3333 (patch) | |
tree | 4893cf92018662afa6914f03ba29bd5da7bcc523 /app/models/comment.rb | |
parent | 35ce47c478b7673a8b04db09cd2cce133c50493f (diff) |
html content of messages and comments are html safe
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r-- | app/models/comment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb index 5507910e2..bcd1efca8 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -68,7 +68,7 @@ class Comment < ActiveRecord::Base text = CGI.escapeHTML(text) text = MySociety::Format.make_clickable(text, :contract => 1) text = text.gsub(/\n/, '<br>') - return text + return text.html_safe end # When posting a new comment, use this to check user hasn't double submitted. |