diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-11 18:22:32 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-11 18:22:32 +1100 |
commit | 5f063b8e22ed35525fc552beb6a4042cfa2b7e5a (patch) | |
tree | 0400dd618f0caef9dbe136ff954eff112a66680e | |
parent | d70c07f71cd8ed02a02da29479856ba858b7292f (diff) |
Don't escape links that are automatically added in user bios
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 617b51c60..e6c666e47 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -354,12 +354,13 @@ class User < ActiveRecord::Base end # Return about me text for display as HTML + # TODO: Move this to a view helper def get_about_me_for_html_display text = self.about_me.strip text = CGI.escapeHTML(text) text = MySociety::Format.make_clickable(text, :contract => 1) text = text.gsub(/\n/, '<br>') - return text + return text.html_safe end def json_for_api |