]> git.openstreetmap.org Git - rails.git/commitdiff
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 b77ac87215351fac98b7198179db05d9c4003e9d..c4395317e06b2738fd8aedfaa937b5ae5d0c7fdf 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)