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/outgoing_message.rb | |
parent | 35ce47c478b7673a8b04db09cd2cce133c50493f (diff) |
html content of messages and comments are html safe
Diffstat (limited to 'app/models/outgoing_message.rb')
-rw-r--r-- | app/models/outgoing_message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb index 2e98e1021..441813e5f 100644 --- a/app/models/outgoing_message.rb +++ b/app/models/outgoing_message.rb @@ -252,7 +252,7 @@ class OutgoingMessage < ActiveRecord::Base text = MySociety::Format.make_clickable(text, :contract => 1) text.gsub!(/\[(email address|mobile number)\]/, '[<a href="/help/officers#mobiles">\1</a>]') text = text.gsub(/\n/, '<br>') - return text + return text.html_safe end def fully_destroy |