Tidy Functions
PHP Manual

tidy_get_error_buffer

(PHP 5, PECL tidy >= 0.5.2)

tidy_get_error_bufferبازگرداندن هشدارها و خطاها هنگام تحلیل سند مشخص

Description

Procedural style:

string tidy_get_error_buffer ( tidy $object )

Object oriented style (property):

string $errorBuffer;

بازگرداندن هشدارها و خطاها هنگام تحلیل سند مشخص.

Parameters

object

The Tidy object.

Return Values

بازگرداندن بافر خطا به عنوان رشته.

Examples

Example #1 مثال tidy_get_error_buffer()

<?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 Functions
PHP Manual