Make rel=nofollow actually work - when in doubt trust the source as

the rails documentation speaks with forked tongue.
This commit is contained in:
Tom Hughes 2009-11-14 16:15:26 +00:00
parent 634565c5d3
commit 17445a44da

View 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)