tidy_diagnose
Run configured diagnostics on parsed and repaired markup
Description
Procedural style:
booltidy_diagnose
tidyobject
Object oriented style:
booltidy->diagnose
tidy_diagnose runs diagnostic tests on the given
tidy object, adding some more information about
the document in the error buffer.
&return.success;
tidy_diagnose example
paragraph
HTML;
$tidy = tidy_parse_string($html);
$tidy->CleanRepair();
// note the difference between the two outputs
echo tidy_get_error_buffer($tidy) . "\n";
$tidy->diagnose();
echo tidy_get_error_buffer($tidy);
?>
]]>
&example.outputs;
isn't allowed in elements
line 5 column 1 - Warning: inserting missing 'title' element
line 5 column 1 - Warning: isn't allowed in
elements
line 5 column 1 - Warning: inserting missing 'title' element
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN"
Info: Document content looks like XHTML 1.0 Strict
2 warnings, 0 errors were found!
]]>
See also tidy_get_error_buffer.