From: HarryO Date: 2001-11-27T01:06:08+09:00 Subject: [ruby-talk:26523] Re: String editing question In article <20011126153856.344481EE12@milestones.dm4lab.to>, "YANAGAWA Kazuhisa" wrote: > According to the documents in cgi.rb: > > print CGI::unescapeElement( > CGI::escapeHTML('
'), "A", "IMG") > # "<BR>" > > print CGI::unescapeElement( > CGI::escapeHTML('
'), ["A", "IMG"]) > # "<BR>" > > Is this acceptable? This is the best solution so far! The other guys came up with some nice solutions, but I'd much prefer to use a standard library to do it. Obviously, the author had my requirements in mind when they wrote the CGI library :-). I did look at that code, but obviously missed this little gem. Thanks.