From: "Kroeger Simon (ext)" Date: 2005-09-13T16:54:30+09:00 Subject: Re: Adventures in html decoding. > > the moral is, there is always a simpler way :) > > > > require 'cgi' > > open(ARGV[1], 'w') do |f| > > f.write(CGI::unescapeHTML(IO.read(ARGV[0]))) > > end > > > > cheers > > > > Simon > > Simpler still: > > require 'cgi' > open(ARGV.pop, 'w') { |f| > f.write(CGI.unescapeHTML(ARGF.read)) > } that just proofed my moral :-D cheers Simon