From: Ara.T.Howard@... Date: 2005-04-30T05:14:28+09:00 Subject: Re: library for doing html escaping... On Sat, 30 Apr 2005, Sean T Allen wrote: > --------------090403080404050404020301 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > ruby forge drives me crazy trying to find things... > > need a library that provides simple functionality of take a string and > doing html escaping > > " to " > & to & > > etc. > > suggestions.... > it's builtin to ruby: harp:~ > irb -r cgi irb(main):001:0> CGI::escapeHTML %Q( " ) => " " " irb(main):002:0> CGI::escapeHTML %Q( & ) => " & " irb(main):003:0> CGI::escapeHTML %Q( < ) => " < " irb(main):004:0> CGI::escapeHTML %Q( > ) => " > " cheers. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | renunciation is not getting rid of the things of this world, but accepting | that they pass away. --aitken roshi ===============================================================================