Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 14, 2005, 2:33 pm
rate this thread
I am looking for a module that will validate a chunk of XHTML. The
module must support utf-8 characters. Idealy, there should also be an
activestate ppm available for the module.
I don't need anything super strict. I just want to make sure that when
the chunk is inserted into a page generated via cgi, it won't break the
page. So it should check for things like unclosed/unmatched tags.
You would think that a module like this would be easy to find, but
nothing on cpan that I've tried has worked the way I need it to.
I tried many modules such as HTML-Lint (it choked on utf-8 and wasn't
really made for XHTML) and Test::XML::Valid (died with a "must have a
plan" error, and doesn't have a ppm anyway).
Re: looking for a module to validate a chunk of XHTML
> I don't need anything super strict. I just want to make sure that when
> the chunk is inserted into a page generated via cgi, it won't break the
Hence super strict :-D.
If you just want to check for well formedness, just run it through
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html