From: Todd Benson Date: 2007-06-25T05:15:44+09:00 Subject: Re: html to plain text On 6/24/07, Florian A�mann wrote: > Hi Colin, consult api doc for Hpricot.inner_text: > > require 'rubygems' > require 'hpricot' > require 'open-uri' > doc = open( 'http://www.google.com/ncr' ) { |io| Hpricot io } > doc.inner_text ^^^^^^^ This code (above) doesn't work on my system. The following does: require 'rubygems' require 'hpricot' html_string = 'Manufacturer' html_data = Hpricot html_string html_element = html_data / "b" puts html_element.inner_html Todd