Tidy
PHP Manual

tidy->html

tidy_get_html

(PHP 5, PECL tidy 0.5.2-1.0.0)

tidy->html -- tidy_get_html Retourne un objet tidyNode commençant à la balise <html>

Description

Style procédural

tidyNode tidy_get_html ( tidy $object )

Style orienté objet

tidyNode tidy->html ( void )

tidy_get_html() retourne un objet tidyNode commençant à la balise <html>.

Liste de paramètres

object

L'objet Tidy

Valeurs de retour

Retourne l'objet tidyNode.

Exemples

Exemple #1 Exemple avec 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;
?>

L'exemple ci-dessus va afficher :

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

Notes

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

Voir aussi


Tidy
PHP Manual