From: "lrlebron@..." Date: 2006-12-13T23:00:09+09:00 Subject: Re: Hpricot html parsing You can try something like this: if p.search("img").length > 0 puts p.inner_html end Dhanasekaran Vivekanandhan wrote: > yes, I want the text of the first

because it > has an image. and reject if

has no image. > thanks, > Dhanasekaran > > -- > Posted via http://www.ruby-forum.com/.