On 24 September 2010 05:58, Maz Zalk <[email protected]> wrote: > Phillip wrote: >> Don't do anything and the escaped characters will appear as you >> intend. >> >> in view code: >> <% text = " <a href= "http://www.blahblah.org/ >> blah">LetterAttack...</a > >> is what i say" -%> >> >> <textarea><%= text -%></textarea> >> >> renders like this: >> � <a href=� "http://www.blahblah.org/blah">LetterAttack...</a > >> is what i say > > > In the textarea on the html page it is rendering like > &lt;ahref=&quot;http://www.blahblah.org/blah&quot;&gt;LetterAttack&lt;/a&gt;this > is what i say > > it is not > <a href="http://www.blahblah.org/blah"> LetterAttack this is what i say > in the textarea > > @text; h(@text); html_escape(@text) in the .erb file all display > &lt;ahref=&quot;http://www.blahblah.org/blah&quot;&gt;LetterAttack&lt;/a&gt;this > is what i say > in the textarea on the html page > (where @text is > &lt;ahref=&quot;http://www.blahblah.org/blah&quot;&gt;LetterAttack&lt;/a&gt;this > is what i say) > > I want it to display <a href= > "http://www.blahblah.orgblah">LetterAttack...</a> is what i say
I am still confused I am afraid. Do you want it to _display_ <a href =... so that is exactly what appears on the screen, or do you want it to display a link to the URL, showing the text LetterAttack? 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.

