tidy_get_body
(PHP 5)
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 (méthode)
tidyNode tidy->body ( void )tidy_get_body() retourne un objet TidyNode commençant à partir de la balise <body>.
Exemple 2579. 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().
Outils (masquer)
S'enregistrer
Liste des Membres
Qui est en ligne?
FAQ