Thread

Posted on Thu Mar 24 04:21:46 2005 by kjetilk
Enabling XHTML cleaning in HTML::Tidy

I'm curious if anybody has looked at using HTML::Tidy to convert tag soup to XHTML? What would be involved in doing that?

I have no XS experience myself, but I have realized I really need it, so if it isn't prohibitively hard to do, I may dive into it.

Cheers,

Kjetil

Direct Responses: 714 | Write a response
Posted on Fri Jul 8 22:55:36 2005 by rhesa in response to 255
Re: Enabling XHTML cleaning in HTML::Tidy
Hei Kjetil,

I do use HTML::Tidy for cleaning up html into valid and properly encoded xhtml, as well as for cleaning up general xml files.

The trick is to install version 1.05_02 of this module. It has the option to pass in the path to a configuration file. That way you can tweak libtidy's behaviour to your heart's content. See http://tidy.sourceforge.net/ for details.

To install this specific version using CPAN, you'd say:

cpan> install PETDANCE/HTML-Tidy-1.05_02.tar.gz


I know this is a developer release, but I'm using it production on a fairly high traffic site (>100k pageviews a day), and it's completely stable.

HTH,
Rhesa
Write a response