<HTML ><HEAD ><TITLE >tidy_get_output</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="tidy Functions" HREF="ref.tidy.html"><LINK REL="PREVIOUS" TITLE="tidy_get_html" HREF="function.tidy-get-html.html"><LINK REL="NEXT" TITLE="tidy_get_release" HREF="function.tidy-get-release.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.tidy-get-output" ></A >tidy_get_output</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN104234" ></A ><P > (no version information, might be only in CVS)</P >tidy_get_output -- Return a string representing the parsed tidy markup </DIV ><DIV CLASS="refsect1" ><A NAME="AEN104237" ></A ><H2 >Description</H2 >string <B CLASS="methodname" >tidy_get_output</B > ( resource tidy)<BR ></BR ><P > Returns a string representing the input document, as manipulated by tidy. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.tidy-get-html.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.tidy-get-release.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >tidy_get_html</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.tidy.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >tidy_get_release</TD ></TR ></TABLE ></DIV ></BODY ></HTML >
<?php
$tidy = new tidy_doc();
$opts = array("indent" => 2,
"indent-spaces" => 4,
"wrap" => 4096);
$tidy->parseFile("function.tidy-get-output.html", $opts);
tidy_clean_repair($tidy);
echo $tidy;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>tidy_get_output</title> <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7"> <link rel="HOME" title="PHP Manual" href="index.html"> <link rel="UP" title="tidy Functions" href="ref.tidy.html"> <link rel="PREVIOUS" title="tidy_get_html" href="function.tidy-get-html.html"> <link rel="NEXT" title="tidy_get_release" href="function.tidy-get-release.html"> <meta http-equiv="Content-type" content="text/html; charset=us-ascii"> </head> <body class="refentry" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="NAVHEADER"> <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th colspan="3" align="center">PHP Manual</th> </tr> <tr> <td width="10%" align="left" valign="bottom"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="80%" align="center" valign="bottom"></td> <td width="10%" align="right" valign="bottom"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> </table> <hr align="left" width="100%"> </div> <h1><a name="function.tidy-get-output"></a>tidy_get_output</h1> <div class="refnamediv"> <a name="AEN104234"></a> <p>(no version information, might be only in CVS)</p>tidy_get_output -- Return a string representing the parsed tidy markup </div> <div class="refsect1"> <a name="AEN104237"></a> <h2>Description</h2>string <b class="methodname">tidy_get_output</b> ( resource tidy)<br> <br> <p>Returns a string representing the input document, as manipulated by tidy.</p> </div> <div class="NAVFOOTER"> <hr align="left" width="100%"> <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="33%" align="left" valign="top"><a href="function.tidy-get-html.html" accesskey="P">Prev</a></td> <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td> <td width="33%" align="right" valign="top"><a href="function.tidy-get-release.html" accesskey="N">Next</a></td> </tr> <tr> <td width="33%" align="left" valign="top">tidy_get_html</td> <td width="34%" align="center" valign="top"><a href="ref.tidy.html" accesskey="U">Up</a></td> <td width="33%" align="right" valign="top">tidy_get_release</td> </tr> </table> </div> </body> </html>