Mark sanitized text as HTML safe
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 09:58:10 +0000 (09:58 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 09:58:10 +0000 (09:58 +0000)
app/helpers/application_helper.rb

index b77ac87..c439531 100644 (file)
@@ -2,7 +2,7 @@ module ApplicationHelper
   require 'rexml/document'
 
   def sanitize(text)
-    Sanitize.clean(text, Sanitize::Config::OSM)
+    Sanitize.clean(text, Sanitize::Config::OSM).html_safe
   end
 
   def htmlize(text)