Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 6264

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return a string representing the parsed tidy markup</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.tidy-error-count.html">tidy_error_count</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-load-config.html">tidy_load_config</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.tidy-get-output" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">tidy_get_output</h1>
  <p class="verinfo">(PHP 5, PECL tidy &gt;= 0.5.2)</p><p class="refpurpose"><span class="refname">tidy_get_output</span> &mdash; <span class="dc-title">Return a string representing the parsed tidy markup</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.tidy-get-output-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>tidy_get_output</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.tidy.html" class="type tidy">tidy</a></span> <code class="parameter">$object</code></span>
   )</div>

  <p class="para rdfs-comment">
   Gets a string with the repaired html.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.tidy-get-output-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">object</code></em></span>
     <dd>

      <p class="para">
       The <a href="class.tidy.html" class="classname">Tidy</a> object.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.tidy-get-output-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the parsed tidy markup.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.tidy-get-output-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-4073">
    <p><strong>Example #1  <span class="function"><strong>tidy_get_output()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$html&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'&lt;p&gt;paragraph&lt;/i&gt;'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$tidy&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">tidy_parse_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$html</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$tidy</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">cleanRepair</span><span style="color: #007700">();<br /><br />echo&nbsp;</span><span style="color: #0000BB">tidy_get_output</span><span style="color: #007700">(</span><span style="color: #0000BB">$tidy</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;paragraph&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre></div>
    </div>
   </div>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.tidy-error-count.html">tidy_error_count</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-load-config.html">tidy_load_config</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>