tenderlove/rails_autolink

html option seems be sanitized out in 1.0.8

thoughtafter opened this issue · 1 comments

1.0.7:

helper.auto_link("this is a test https://github.com/", :html=>{:rel => "nofollow"})
=> "this is a test <a href=\"https://github.com/\" rel=\"nofollow\">https://github.com/</a>"

1.0.8:

helper.auto_link("this is a test https://github.com/", :html=>{:rel => "nofollow"})
=> "this is a test <a href=\"https://github.com/\">https://github.com/</a>"

This may be a deliberate change of behavior but if so there should be something documenting how to update the code.

Yes I dealt with output very badly sanitizing it all. Now we rolled back and fixed the problem in another way - use 1.0.9 please