aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-04-25 09:34:38 +0100
committerLouise Crow <louise.crow@gmail.com>2013-04-25 09:52:31 +0100
commit2ecb868ef5ede89c8e2a91dd60be21db19bea8f4 (patch)
tree2433e115adc90307a8a3f93ade2482aebef3e93d
parent442675ac5b9640cd54af479e03ce7ff2dbfee011 (diff)
Mark ban text as html safe
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 63dd5b1dd..257acd0fc 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -298,7 +298,7 @@ class User < 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
# Returns domain part of user's email address