]> git.openstreetmap.org Git - rails.git/blobdiff - lib/rich_text.rb
Cleanup trailing whitespace
[rails.git] / lib / rich_text.rb
index 87ea58933579e93c043d1ed28adf5f9ac7a0f094..4cd2547203dd08c85ec617b767bcc35a55eafd5d 100644 (file)
@@ -10,6 +10,7 @@ module RichText
 
   class SimpleFormat
     include ActionView::Helpers::TextHelper
+    include ActionView::Helpers::OutputSafetyHelper
 
     def sanitize(text)
       Sanitize.clean(text, Sanitize::Config::OSM).html_safe
@@ -101,7 +102,7 @@ module RichText
         else
           "<a rel=\"nofollow\" href=\"#{link}\">#{link}</a>"
         end
-      end 
+      end
     end
   end