Adventures in html decoding

> the moral is, there is always a simpler way :slight_smile:
>
> 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 :smiley:

cheers

Simon