Make rel=nofollow actually work - when in doubt trust the source as
[rails.git] / app / helpers / application_helper.rb
index 9d2ae0071fe23b6e0472291d2244e3c44535d717..2eebec1708378663a5bc4f67ad828ec5dd847da9 100644 (file)
@@ -1,6 +1,6 @@
 module ApplicationHelper
   def htmlize(text)
-    return sanitize(auto_link(simple_format(text), :link => :urls, :href_options => { :rel => "nofollow" }))
+    return sanitize(auto_link(simple_format(text), :link => :urls, :html => { :rel => "nofollow" }))
   end
 
   def html_escape_unicode(text)