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

search for in the

tidy_get_config> <tidy_error_count
Last updated: Fri, 22 Aug 2008

view this page in

tidy_get_body

(PHP 5, PECL tidy:0.5.2-1.0)

tidy_get_body Retourne un objet TidyNode, commencé à partir de la balise <body>

Description

Style procédural :

tidyNode tidy_get_body ( tidy $object )

Style orienté objet :

tidyNode tidy->body ( void )

tidy_get_body() retourne un objet TidyNode commençant à partir de la balise <body>.

Exemple #1 Exemple avec tidy_get_body()

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

$tidy tidy_parse_string($html);

$body tidy_get_body($tidy);
echo 
$body->value;
?>

L'exemple ci-dessus va afficher :

<body>
 <p>paragraph</p>
</body>

Note: Cette fonction n'est disponible qu'avec le Zend Engine 2, c'est à dire PHP >= 5.0.0.

Voir aussi tidy_get_head() et tidy_get_html().



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

tidy_get_config> <tidy_error_count
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites