Make rel=nofollow actually work - when in doubt trust the source as
the rails documentation speaks with forked tongue.
This commit is contained in:
parent
634565c5d3
commit
17445a44da
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue