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

search for in the

tidy::cleanRepair> <tidy
[edit] Last updated: Fri, 24 May 2013

view this page in

tidy::body

tidy_get_body

(PHP 5, PECL tidy 0.5.2-1.0)

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

Description

Style orienté objet

tidyNode tidy::body ( void )

Style procédural

tidyNode tidy_get_body ( tidy $object )

Retourne un objet TidyNode commençant à partir de la balise <body>.

Liste de paramètres

object

L'objet Tidy

Valeurs de retour

Retourne la version de HTML détectée.

Avertissement

Cette fonction n'est pas encore implémentée dans Tidylib elle-même, alors elle retourne toujours 0.

Exemples

Exemple #1 Exemple avec tidy::getBody()

<?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>

Notes

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

Voir aussi

  • tidy::head() - Retourne un objet tidyNode à partir de la balise <head>
  • tidy::html() - Retourne un objet tidyNode commençant à la balise <html>


add a note add a note User Contributed Notes tidy::body - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites