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

search for in the

Tidy> <Ejemplos
Last updated: Fri, 20 May 2011

view this page in

Ejemplos de Tidy

Este simple ejemplo muestra el uso básico de Tidy.

Example #1 Uso Básico Tidy

<?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 Ejemplos de Tidy
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites