This project is archived and is in readonly mode.

#3733 ✓invalid
Sam Saffron

There is no way to have an unescaped html in a link title

Reported by Sam Saffron | January 18th, 2010 @ 03:20 AM

Sometimes I use link_to to link an image.

In rails 3 the name is always escaped:

"<a #{href_attr}#{tag_options}>#{ERB::Util.h(name || url)}</a>".html_safe!

Can you add an option to link_to that matches the option on url_for so it accepts :escape like url_for does.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages