PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

tidy> <Predefined Constants
Last updated: Fri, 16 May 2008

view this page in

Examples

Examples

This simple example shows basic Tidy usage.

Example #1 Basic Tidy usage

<?php
ob_start
();
?>
<html>a html document</html>
<?php
$html 
ob_get_clean();

// Specify configuration
$config = array(
           
'indent'         => true,
           
'output-xhtml'   => true,
           
'wrap'           => 200);

// Tidy
$tidy = new tidy;
$tidy->parseString($html$config'utf8');
$tidy->cleanRepair();

// Output
echo $tidy;
?>



add a note add a note User Contributed Notes
Examples
There are no user contributed notes for this page.

tidy> <Predefined Constants
Last updated: Fri, 16 May 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites