Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: tidy_get_html - Manual
[go: Go Back, main page]

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

search for in the

tidy_get_opt_doc" width="11" height="7"/> <tidy_get_html_ver
Last updated: Fri, 12 Sep 2008

view this page in

tidy_get_html

(PHP 5, PECL tidy:0.5.2-1.0)

tidy_get_htmlTidy パースツリーの <html> タグから始まる tidyNode オブジェクトを返す

説明

手続き型:

tidyNode tidy_get_html ( tidy $object )

オブジェクト指向型:

tidyNode tidy->html ( void )

この関数は Tidy パースツリーの <html> タグから始まる tidyNode オブジェクトを返します。

例1 tidy_get_html() の例

<?php
$html 
'
<html>
  <head>
    <title>test</title>
  </head>
  <body>
    <p>paragraph</p>
  </body>
</html>'
;

$tidy tidy_parse_string($html);

$html tidy_get_html($tidy);
echo 
$html->value;
?>

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

<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>

注意: この関数は、Zend Engine 2、つまり、PHP >= 5.0.0でのみ利用可能です。

tidy_get_body(), tidy_get_head() も参照ください。



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

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