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):
SYNOPSIS
string$tidy->errorBuffer ()
DESCRIPTION
Procedural style:
string tidy_get_error_buffer (tidy $tidy)
Returns warnings and errors which occurred parsing the specified document.
PARAMETERS
o $tidy
- The Tidy object.
RETURN VALUES
Returns the error buffer as a string.
EXAMPLES
Example #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' element
SEE ALSO
tidy_access_count(3), tidy_error_count(3), tidy_warning_count(3).
PHP Documentation Group TIDY_GET_ERROR_BUFFER(3)