From: Jamis Buck Date: 2004-07-26T13:39:28+09:00 Subject: Re: [ANN] Rails 0.5.0: The end of vaporware! dominic sisneros wrote: > If you include ERB::Util then it includes html escape. Use it in your > templates like this > > <%h= puts "Some text with " %> Could you give a longer example? I tried the following and didn't get what I expected... require 'erb' include ERB::Util @text = "something with and \"quotes\"" erb = ERB.new( "This is <%h= @text %>" ) p erb.result #-> "This is " - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis "I use octal until I get to 8, and then I switch to decimal."