From: Marcin Raczkowski Date: 2007-07-11T18:17:52+09:00 Subject: Re: convert htmlspecial characters using ruby On Wednesday 11 July 2007 09:06, hemant wrote: > On 7/11/07, geetha wrote: > > hi, > > > > I have to decode the html special character using ruby, > > if any function is there like php htmlspecialchars_decode (). > > > > > > thanks, > > sangeetha.S > > If you want to escape HTML special charcaters then i guess following would > work: > > CGI::escapeHTML('Usage: foo "bar" ') > # => "Usage: foo "bar" <baz>" > > If thats not what you want, please look into documentation of CGI > class and i think you would find method that you are looking for. also ERB::h might help ^^ -- Marcin Raczkowski --- Friends teach what you should know Enemies Teach what you have to know