aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/incoming_message.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-03 13:54:08 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-03 13:54:08 +1100
commit1d71ab6d1aa7e5de00753f7b97a8158ee2bc3333 (patch)
tree4893cf92018662afa6914f03ba29bd5da7bcc523 /app/models/incoming_message.rb
parent35ce47c478b7673a8b04db09cd2cce133c50493f (diff)
html content of messages and comments are html safe
Diffstat (limited to 'app/models/incoming_message.rb')
-rw-r--r--app/models/incoming_message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 123319125..98124b28e 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -851,7 +851,7 @@ class IncomingMessage < ActiveRecord::Base
text = text.gsub(/\n/, '<br>')
text = text.gsub(/(?:<br>\s*){2,}/, '<br><br>') # remove excess linebreaks that unnecessarily space it out
- return text
+ return text.html_safe
end