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

search for in the

tidy::__construct> <tidy::body
Last updated: Fri, 13 Nov 2009

view this page in

tidy::cleanRepair

tidy_clean_repair

(PHP 5, PECL tidy >= 0.5.2)

tidy::cleanRepair -- tidy_clean_repairパースされたマークアップに設定に基く誤りの修正を行う

説明

手続き型

bool tidy_clean_repair ( tidy $object )

オブジェクト指向型

bool tidy::cleanRepair ( void )

この関数は、与えられた Tidy オブジェクト object を修正します。

パラメータ

object

Tidy オブジェクト。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 tidy::cleanrepair() の例

<?php
$html 
'<p>test</I>';

$tidy tidy_parse_string($html);
$tidy->cleanRepair();

echo 
$tidy;
?>

上の例の出力は以下となります。

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>

参考



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

tidy::__construct> <tidy::body
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites