In article <20011126153856.344481EE12 / milestones.dm4lab.to>, "YANAGAWA
Kazuhisa" <kjana / dm4lab.to> wrote:

> According to the documents in cgi.rb:
> 
>   print CGI::unescapeElement(
>           CGI::escapeHTML('<BR>'), "A", "IMG")
>     # "&lt;BR&gt;"
> 
>   print CGI::unescapeElement(
>           CGI::escapeHTML('<BR>'), ["A", "IMG"])
>     # "&lt;BR&gt;"
> 
> 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.