Sanitize any user supplied HTML before doing link detection or the
sanitizer will strip the rel=nofollow attributes.
This commit is contained in:
parent
17445a44da
commit
41dfa42edd
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, :html => { :rel => "nofollow" }))
|
||||
return auto_link(sanitize(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