]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Sanitize any user supplied HTML before doing link detection or the
[rails.git] / app / helpers / application_helper.rb
index 2eebec1708378663a5bc4f67ad828ec5dd847da9..e10650ada1fa3cde95956725f5e679f146446156 100644 (file)
@@ -1,6 +1,6 @@
 module ApplicationHelper
   def htmlize(text)
-    return sanitize(auto_link(simple_format(text), :link => :urls, :html => { :rel => "nofollow" }))
+    return auto_link(sanitize(simple_format(text)), :link => :urls, :html => { :rel => "nofollow" })
   end
 
   def html_escape_unicode(text)