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

search for in the

Tidy 関数> <定義済み定数
Last updated: Fri, 18 Jul 2008

view this page in

このシンプルな例は、Tidy の基本的な使い方を示しています。

例1 Tidy の基本的な使用法

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

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

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

// 出力
echo $tidy;
?>



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

Tidy 関数> <定義済み定数
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites