HTML Tidy  5.7.0
The HTACG Tidy HTML Project
Diagnostics and Repair

Detailed Description

After parsing the document, you can use these functions to attempt cleanup, repair, get additional diagnostics, and determine the document type.

Functions

int TIDY_CALL tidyCleanAndRepair (TidyDoc tdoc)
 Execute configured cleanup and repair operations on parsed markup. More...
 
int TIDY_CALL tidyReportDoctype (TidyDoc tdoc)
 Reports the document type into the output sink. More...
 
int TIDY_CALL tidyRunDiagnostics (TidyDoc tdoc)
 Reports the document type and diagnostic statistics on parsed and repaired markup. More...
 

Function Documentation

int TIDY_CALL tidyCleanAndRepair ( TidyDoc  tdoc)

Execute configured cleanup and repair operations on parsed markup.

Parameters
tdocThe tidy document to use.
Returns
An integer representing the status.
int TIDY_CALL tidyReportDoctype ( TidyDoc  tdoc)

Reports the document type into the output sink.

Parameters
tdocThe tidy document to use.
Returns
An integer representing the status.
int TIDY_CALL tidyRunDiagnostics ( TidyDoc  tdoc)

Reports the document type and diagnostic statistics on parsed and repaired markup.

You must call tidyCleanAndRepair() before using this function.

Parameters
tdocThe tidy document to use.
Returns
An integer representing the status.