From: Brian Candler Date: 2007-04-14T04:05:34+09:00 Subject: Re: [ANN] ClothRed 0.3.0 released On Sat, Apr 14, 2007 at 01:24:02AM +0900, Phillip Gawlowski wrote: > >I think the suggestion of using a HTML parser (like Hpricot) to do > >this conversion will impose itself pretty soon. > > Probably, but I'll have to play with Hpricot first, to see if it can do > what is needed (after a short skim, it allows to convert HTML4 into > XHTML1.0, which will make it easier). Trouble is, I want ClothRed as > dependency free as I can. I think what you're going to find is, parsing tag-soup HTML is harder than you think - especially if your goal with ClothRed is to parse *arbitrary* tag-soup HTML from arbitrary sources.