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 orienté objet

tidyNode tidy::html ( void )

Style procédural

tidyNode tidy_get_html ( tidy $object )

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::html()

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

$tidy tidy_parse_string($html);

$html $tidy->html();
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