w3m.rb $Id: w3m.rb 597 2005-10-18 21:03:12Z rubikitch $
--- W3M.w3m(url, options='-e')
invoke w3m.
--- W3M.html2txt(htmlstr, options='-e')
convert htmlstr to plain text.
--- W3M.source(url, options='-e')
get the source.
# File lib/rt/w3m.rb, line 18 def external_filter (str, prog) require 'open3' pipe = Open3.popen3(prog) pipe[0] .print str pipe[0] .close pipe[1] .read end
# File lib/rt/w3m.rb, line 32 def html2txt(htmlstr, option='-e') external_filter(htmlstr, "w3m -dump -T text/html #{option}") end
Generated with the Darkfish Rdoc Generator 2.