You could shell out to the original HTML Tidy (http://tidy.sourceforge.net/ * I've used that very successfully in past lives) or get the HTML::Tidy Perl module (can't vouch for it personally, but it seems to be the Perl version of what you're looking for).
Bibliothèque J.N. Desmarais Library
Laurentian University / Université Laurentienne
Phone: 705-675-1151 x3315
>>> [log in to unmask] 6/6/2006 4:23:43 PM >>>
Is there a cool Tidy (Perl) module that will convert (force) dirty
HTML documents into XHTML documents? I took a look at CPAN but I
wasn't sure which one(s) do the job.
Eric "()()()()()" Morgan