I have this in my .erb file

<%= text_area_tag 'text', h(@text), :style => "width: 100%", :rows => 6
%>
or
<%= text_area_tag 'text', html_escape(@text), :style => "width: 100%",
:rows => 6 %>

and it does not actually escape the characters

This is what is in my page source

 <textarea id="text" name="text" rows="6" style="width: 100%">&amp;lt;a
href=&amp;quot;http://www.blahblah.org/blah&amp;quot;&amp;gt;LetterAttack&amp;lt;/a&amp;gt;
this is what i say</textarea>

Any ideas would be appreciated
Thanks
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to