On Wed, 9 Jul 2003, Reinier Post wrote: > On Tue, Jul 08, 2003 at 03:34:12PM +0100, Richard Lamb wrote: > > working out a means of stripping HTML tags (via the DOM interface, which > > [...] > I have only tried HTML::TreeBuilder (not DOM, but the same principle; > uses heuristic HTML parsing and patching that does some unwanted things) [...]
Another way is to use libtidy (a new shared library-ized HTMLTidy, with Perl binding) and a (standard, rather than TreeBuilder) DOM Parser. I think libtidy can output both XHTML and HTML (there is such a thing as HTML DOM, remember). John
