This project is archived and is in readonly mode.

#2015 ✓committed
Chris Mear

text_area_tag should escape contents by default

Reported by Chris Mear | February 19th, 2009 @ 02:20 PM | in 2.3.4

text_area_tag currently does not HTML-escape its contents/value by default. However, the rest of the form tag helpers do escape their values, and the corresponding text_area method in FormHelper does it as well.

For consistency and security's sake, it seems like text_area_tag should escape its content by default too.

See also discussion here:

http://groups.google.com/group/r...

and previous ticket here:

http://dev.rubyonrails.org/ticke...

Simple patch attached.

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>

People watching this ticket

Referenced by

Pages