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> <tidy_get_html_ver
Last updated: Fri, 27 Jun 2008

view this page in

tidy_get_html

(PHP 5, PECL tidy:0.5.2-1.0)

tidy_get_html — Zwraca obiekt tidyNode zaczynający się od znacznika <html> w parsowanym drzewie tidy

Opis

Styl proceduralny:

tidyNode tidy_get_html ( tidy $obiekt )

Styl zorientowany obiektowo:

tidyNode tidy->html ( void )

Ta funkcja zwraca obiekt tidyNode zaczynający się od znacznika <html> w parsowanym drzewie tidy.

Example #1 Przykład 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;
?>

Powyższy przykład wyświetli:

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

Informacja: Ta funkcja jest dostępna tylko z Zend Engine 2 (PHP >= 5.0.0.)

Patrz także: tidy_get_body() i tidy_get_head().



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

tidy_get_opt_doc> <tidy_get_html_ver
Last updated: Fri, 27 Jun 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites