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:34:38 +0100
commitff822b780a1d5bc2438d9f865867b0065662a306 (patch)
treea6e0719bce1559598bd658fc97fefb71710b1d3c
parenta5975915975f5f2b815ec1a20e3bcfaf78831add (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 612ac7fa2..6b66e1a8d 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -306,7 +306,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