tidy::$errorBuffer

tidy_get_error_buffer

(PHP 5, PHP 7, PECL tidy >= 0.5.2)

tidy::$errorBuffer -- tidy_get_error_bufferReturn warnings and errors which occurred parsing the specified document

说明

面向对象风格 (property):

public string $tidy->errorBuffer;

过程化风格:

tidy_get_error_buffer ( tidy $tidy ) : string

Returns warnings and errors which occurred parsing the specified document.

参数

tidy

The Tidy 对象。

返回值

Returns the error buffer as a string.

范例

Example #1 tidy_get_error_buffer() example

<?php
$html 
'<p>paragraph</p>';

$tidy tidy_parse_string($html);

echo 
tidy_get_error_buffer($tidy);
/* or in OO: */
echo $tidy->errorBuffer;
?>

以上例程会输出:

line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting missing 'title' element

参见

  • tidy_access_count() - Returns the Number of Tidy accessibility warnings encountered for specified document
  • tidy_error_count() - Returns the Number of Tidy errors encountered for specified document
  • tidy_warning_count() - Returns the Number of Tidy warnings encountered for specified document
相关文章
php domimplementation creates a domdocument object of the specified type with its document elementphp cubrid mysql 兼容性函数 return the name of the specified field indexphp cubrid mysql 兼容性函数 return the name of the table of the specified fieldphp tidy 函数 returns the number of tidy accessibility warnings encountered for specified documentphp tidy 函数 returns the number of tidy configuration errors encountered for specified documentphp tidy 函数 returns the number of tidy errors encountered for specified documentphp tidy 函数 returns the number of tidy warnings encountered for specified documentphp harudoc define which page is shown when the document is openedphp mongocollection update a document and return itphp mongodb driver manager return the servers to which this manager is connectedphp mongodb driver writeresult returns any write errors that occurredphp mongogridfscursor return the next file to which this cursor points and advance the cursorphp reflectionfunctionabstract checks if the function has a specified return typephp solrquery specifies which fields to return in the resultphp swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.php tidy get the detected html version for the specified documentphp tidy returns the value of the specified configuration option for the tidy documentphp tidy get status of specified documentphp tidy return warnings and errors which occurred parsing the specified documentphp tidy repair a file and return it as a string
关注编程学问公众号