From: John Joyce Date: 2007-07-19T21:29:40+09:00 Subject: Re: hpricot question On Jul 19, 2007, at 1:32 AM, Ivor Paul wrote: > I'm a total hpricot newbie, so this is only out of curiousity... > > Is the following expected behaviour? > I found this while struggling through a nasty xml parsing bug. > > hstr = Hpricot('c').to_s #or to_html > > returns => 'c' > > I have found that using to_original_html returns 'c' as > expected > but I was wondering why you would want to wrap the other > contents when > it obviously isn't correct? Is this handy behaviour for scrapping? > > > regards Hmm... if you want modern markup, it is correct. Link's text here You'd do well to avoid in favor of