This project is archived and is in readonly mode.
There is no way to have an unescaped html in a link title
-
Prem Sichanugrist (sikachu)
If you're going to link to image, use
image_taghelper, or just mark your<img>tag hashtml_safe!link_to image_tag('foo.png'), '/go/to/foo' link_to '<img src="foo.png" />'.html_safe!, '/go/to/foo'All string that isn't marked as
html_safewill always be escaped in Rails 3. -
Sam Saffron
Ok makes sense however there is an inconsistency with the implementation of url_for. Does it need that escape logic there ?
-
Prem Sichanugrist (sikachu)
I think there's a use case for escape logic there. One of the example would be if you're going to include the url generated from
url_foras a parameter in GET request, so it would escape&in the value. -
José Valim
- State changed from new to invalid