-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto_link removes options from existing a tags #21
Comments
gem version? it was fixed |
1.0.9 |
it's not fixed. using 1.0.9 |
the auto_link method by default sanitizes everything coming its way. auto_link('<a href="http://google.com" target="_blank">Here</a>', :sanitize => false) or handle the case where target is inserted into the attribute? |
Still in 1.1.0 |
Oops, :sanitize => false works, thank you. |
@tmlee Thanks for the fix! Works well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
auto_link seems to remove html options from existing
<a>
tags in my code. For example:auto_link('<a href="http://google.com" target="_blank">Here</a>')
returns
<a href="http://google.com">Here</a>
This definitely doesn't seem like expected behavior...
The text was updated successfully, but these errors were encountered: