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... | |
Execute configured cleanup and repair operations on parsed markup.
tdoc | The tidy document to use. |
Reports the document type into the output sink.
tdoc | The tidy document to use. |
Reports the document type and diagnostic statistics on parsed and repaired markup.
You must call tidyCleanAndRepair() before using this function.
tdoc | The tidy document to use. |