mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-23 04:18:56 +00:00

#Jakub: this function should be added to the 'difficult protos' list, because it shares an internal function that accepts the 'use_include_path', but it doesnt use it. you can check for the 'is_file' variable, for example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@189029 c90b9560-bf6c-de11-be94-00142212c4b1
93 lines
2 KiB
XML
93 lines
2 KiB
XML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.9 $ -->
|
|
<refentry id="function.tidy-repair-string">
|
|
<refnamediv>
|
|
<refname>tidy_repair_string</refname>
|
|
<refpurpose>
|
|
Repair a string using an optionally provided configuration file
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>tidy_repair_string</methodname>
|
|
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
|
<methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
This function repairs the given string.
|
|
</para>
|
|
&tidy.conf-enc;
|
|
<para>
|
|
<example>
|
|
<title><function>tidy_repair_string</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
ob_start();
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<title>test</title>
|
|
</head>
|
|
<body>
|
|
<p>error</i>
|
|
</body>
|
|
</html>
|
|
|
|
<?php
|
|
|
|
$buffer = ob_get_clean();
|
|
$tidy = tidy_repair_string($buffer);
|
|
|
|
echo $tidy;
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html>
|
|
<head>
|
|
<title>test</title>
|
|
</head>
|
|
<body>
|
|
<p>error</p>
|
|
</body>
|
|
</html>
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
¬e.tidy.2only;
|
|
<para>
|
|
See also <function>tidy_parse_file</function>,
|
|
<function>tidy_parse_string</function> and
|
|
<function>tidy_repair_file</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
|
|
-->
|