From: mortee Date: 2007-10-29T23:33:03+09:00 Subject: Re: HTML parser Hpricot? and how to get all text SpringFlowers AutumnMoon wrote: > Would a good HTML parser be Hpricot? It definitely is. > I wonder if anyone knows an easy > way for it to get all text of an HTML file? (removing all formatting > tags). It looks like #inner_text removes all tags and what remains is the plain text content. Note that it won't convert
's and

's to newlines - it really just strips tags. If you want more sophisticated text results, you should iterate over the elements, and implement your logic for specific ones. mortee