mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
more tidy docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@153011 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3afe2a7cd3
commit
10a00f5837
2 changed files with 36 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.tidy-get-error-buffer">
|
||||
<refnamediv>
|
||||
<refname>tidy_get_error_buffer</refname>
|
||||
|
@ -12,11 +11,41 @@
|
|||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>tidy_get_error_buffer</methodname>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>detailed</parameter></methodparam>
|
||||
<methodparam><type>resource</type><parameter>tidy</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>tidy_get_error_buffer</function> returns warnings and errors
|
||||
which occurred parsing the specified document.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>tidy_get_error_buffer</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$html = '<p>paragraph</p>';
|
||||
|
||||
&warn.undocumented.func;
|
||||
|
||||
$tidy = tidy_parse_string($html);
|
||||
echo tidy_get_error_buffer($tidy);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
|
||||
line 1 column 1 - Warning: inserting missing 'title' element
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>tidy_access_count</function>,
|
||||
<function>tidy_error_count</function> and
|
||||
<function>tidy_warning_count</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id="function.tidy-get-html-ver">
|
||||
<refnamediv>
|
||||
<refname>tidy_get_html_ver</refname>
|
||||
|
@ -12,7 +11,7 @@
|
|||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>tidy_get_html_ver</methodname>
|
||||
<void/>
|
||||
<methodparam><type>resource</type><parameter>tidy</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
||||
&warn.undocumented.func;
|
||||
|
|
Loading…
Reference in a new issue