Query: tidy_get_error_buffer
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TIDY_GET_ERROR_BUFFER(3) 1 TIDY_GET_ERROR_BUFFER(3) tidy::$errorBuffer - Return warnings and errors which occurred parsing the specified document Object oriented style (property):SYNOPSISstring$tidy->errorBuffer ()DESCRIPTIONProcedural style: string tidy_get_error_buffer (tidy $tidy) Returns warnings and errors which occurred parsing the specified document.PARAMETERSo $tidy - The Tidy object.RETURN VALUESReturns the error buffer as a string.EXAMPLESExample #1 tidy_get_error_buffer(3) example <?php $html = '<p>paragraph</p>'; $tidy = tidy_parse_string($html); echo tidy_get_error_buffer($tidy); /* or in OO: */ echo $tidy->errorBuffer; ?> The above example will output: line 1 column 1 - Warning: missing <!DOCTYPE> declaration line 1 column 1 - Warning: inserting missing 'title' elementSEE ALSOtidy_access_count(3), tidy_error_count(3), tidy_warning_count(3). PHP Documentation Group TIDY_GET_ERROR_BUFFER(3)