This project is archived and is in readonly mode.
Using the highlight helper on text with html shouldn't highlight text inside html attributes
Reported by Dan Weinand | October 30th, 2008 @ 06:11 PM
This patch prevents the highlight text helper from highlighting text within html attributes.
ex without patch:
highlight('Rails was featured in a new <a href="http://example.com/blog/rails">blog post</a> today.', "rails")
#=> '<strong class="highlight">Rails</strong> was featured in a new <a href="http://example.com/blog/<strong class="highlight">rails</strong>">blog post</a> today.'
Comments and changes to this ticket
-
Tom Brice October 30th, 2008 @ 07:28 PM
This allows the use of #highlight on arbitrary HTML without breaking it
-
Pratik January 19th, 2009 @ 08:10 PM
- Milestone cleared.
- Assigned user set to Pratik
- Title changed from [PATCH] Using the highlight helper on text with html shouldn't highlight text inside html attributes to Using the highlight helper on text with html shouldn't highlight text inside html attributes
-
Repository January 28th, 2009 @ 08:01 PM
- State changed from new to resolved
(from [91eeb0ff119d34d0fcdb44d3d7fcbb7924208e05]) Using the highlight helper on text with html shouldn't highlight text inside html attributes. [#1302 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Referenced by
- 1302 Using the highlight helper on text with html shouldn't highlight text inside html attributes (from [91eeb0ff119d34d0fcdb44d3d7fcbb7924208e05]) Using t...