by the way
require 'hpricot'
doc = Hpricot("<b>hello <i>world</i></b>")
p doc.search("").inner_text
won't work... i am not sure if it is the Win installer of Ruby... but it
is the most recent Win installer.
it says
scraper2.rb:6: undefined method `inner_text' for
#<Hpricot::Elements:0x348dbc4>
(NoMethodError)
and doc.to_plain_text() won't work either...
--
Posted via http://www.ruby-forum.com/.