This project is archived and is in readonly mode.

#80 ✓resolved
Kevin Glowacz

form_helper corrupts text_fields which have raw html entities

Reported by Kevin Glowacz | May 1st, 2008 @ 04:53 PM

copied from Trac#8116 :

Given the title "The HTML Entity for & is &", the field to edit it should look something like:

 <input id="post_title" name="post[title]" size="30" type="text" value="The HTML Entity for &amp; is &amp;amp;" />

Such strings are correctly escaped in textarea tags, but currently not in text_fields.

I have reformatted this patch by mchenryc

This patch fixes the problem with text fields and adds tests for both text fields and text areas.

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>

Attachments

Pages