html_tidy_ok( [$tidy, ] CW$html, CW$name )
Checks to see if $html contains valid HTML. $html being blank is OK.
$html being undef is not.
If you pass an HTML::Tidy object, html_tidy_ok() will use that for its
settings. The $html will get passed through $tidy.
my $tidy = new HTML::Tidy;
$tidy->ignore( type => TIDY_WARNING );
html_tidy_ok( $tidy, $content, "Web page passes without errors" );
Otherwise, html_tidy_ok will use the default rules.
html_tidy_ok( $content, "Web page passes ALL tests" );
Note that if you pass in your own HTML::Tidy object, html_tidy_ok()
will clear its errors before using it.