2010-03-29 16:25:51 +00:00
|
|
|
<?xml version='1.0' encoding="utf-8"?>
|
2009-07-11 09:13:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-30 00:34:38 +00:00
|
|
|
<refentry xml:id="function.tidy-get-output" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>tidy_get_output</refname>
|
|
|
|
<refpurpose>Return a string representing the parsed tidy markup</refpurpose>
|
|
|
|
</refnamediv>
|
2007-12-30 11:35:36 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-12-30 00:34:38 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>tidy_get_output</methodname>
|
|
|
|
<methodparam><type>tidy</type><parameter>object</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2007-12-30 11:35:36 +00:00
|
|
|
Gets a string with the repaired html.
|
2007-12-30 00:34:38 +00:00
|
|
|
</para>
|
2007-12-30 11:35:36 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>object</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-04-13 09:00:01 +00:00
|
|
|
&tidy.object;
|
2007-12-30 11:35:36 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns the parsed tidy markup.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-12-30 00:34:38 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>tidy_get_output</function> example</title>
|
|
|
|
<programlisting role="php">
|
2004-03-09 19:33:06 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2003-11-04 13:26:55 +00:00
|
|
|
|
2004-03-09 19:33:06 +00:00
|
|
|
$html = '<p>paragraph</i>';
|
|
|
|
$tidy = tidy_parse_string($html);
|
2003-11-04 13:26:55 +00:00
|
|
|
|
2009-10-07 10:06:20 +00:00
|
|
|
$tidy->cleanRepair();
|
2004-03-09 19:33:06 +00:00
|
|
|
|
|
|
|
echo tidy_get_output($tidy);
|
|
|
|
?>
|
|
|
|
]]>
|
2007-12-30 00:34:38 +00:00
|
|
|
</programlisting>
|
|
|
|
&example.outputs;
|
|
|
|
<screen>
|
2004-03-09 19:33:06 +00:00
|
|
|
<![CDATA[
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title></title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<p>paragraph</p>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
]]>
|
2007-12-30 00:34:38 +00:00
|
|
|
</screen>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2003-11-04 13:26:55 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2003-11-04 13:26:55 +00:00
|
|
|
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
|
|
|
|
-->
|