diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-04-25 09:34:38 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-04-29 09:18:40 +0100 |
commit | 755a19b129de81e137fe14d787737bef63bbcecc (patch) | |
tree | 1e8846c1446c3a7bd4657cd14f5c2e1e67068b29 | |
parent | 7195e67e525af76f264e278e22a2784040c45d46 (diff) |
Mark ban text as html safe
-rw-r--r-- | app/models/user.rb | 2 |
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 |