On 23 September 2010 04:44, Maz Zalk <[email protected]> wrote: > 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%">&lt;a > href=&quot;http://www.blahblah.org/blah&quot;&gt;LetterAttack&lt;/a&gt; > this is what i say</textarea>
What is in @text and what did you expect the html to look like? Colin -- 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.

