On Thu, Oct 12, 2006 at 10:29:54PM +0900, Rick DeNatale wrote: > >There is a simpler implementation of all_text: > > > >class Hpricot::Elem > > def all_text > > text = '' > > traverse_text {|t| text << t.content } > > text > > end > >end > > Thanks Aaron and Greg, works a treat! If three of you have independantly used this, let's check it in. Elements#text which parallels Elements#html (I think jQuery also has this) and Elem#inner_text as well. _why