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 cubrid mysql 兼容性函数 return the name of the specified field indexphp snmp 函数 return all objects including their respective object id within the specified onephp 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 函数 return a string representing the parsed tidy markupphp tidy 函数 returns the number of tidy warnings encountered for specified documentphp harudoc get current value of the specified document attributephp harufont calculate the number of characters which can be included within the specified widthphp mongodb driver writeresult returns any write errors that occurredphp reflectionfunctionabstract checks if the function has a specified return typephp solrquery returns the frequency below which terms will be ignored in the source documentphp solrquery returns the minimum document frequency to return in order to be includedphp 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 indicates if the document is a generic non html/xhtml xml documentphp tidy parse a document stored in a stringphp tidy return warnings and errors which occurred parsing the specified document
关注编程学问公众号