<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.1 $ -->
  <refentry id="function.ob-tidyhandler">
   <refnamediv>
    <refname>ob_tidyhandler</refname>
    <refpurpose>
     ob_start callback function to repair the buffer
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>string</type><methodname>ob_tidyhandler</methodname>
      <methodparam><type>string</type><parameter>input</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>ob_tidyhandler</function> is intended to be used as a
     callback function for <function>ob_start</function> to repair the buffer.
    </para>
    <para>
     <example>
      <title><function>ob_tidyhandler</function> example</title>
      <programlisting role="php">
<![CDATA[
<?php
ob_start('ob_tidyhandler');

echo '<p>test</i>';
?>
]]>
      </programlisting>
      <para>
       The above example will output:
      </para>
      <screen>
<![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>
]]>
      </screen>
     </example>
    </para>
    <para>
     See also <function>ob_start</function>.
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->