From: Brian Candler Date: 2004-09-25T02:48:00+09:00 Subject: Re: Ruby Code to HTML > A quick and dirty way might be: Oh well if that's allowed, then how about: File.open("file.rb") do |r| File.open("file.html","w") do |w| w.puts "
"
    r.each_line do |line|
      line.gsub!(/&/,'&')
      line.gsub!(//,'>')
      w.puts line
    end
    w.puts "
" end end :-)