Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

tidy_get_body

(PHP 5)

tidy_get_body --  Returns a tidyNode Object starting from the <body> tag of the tidy parse tree

Description

Procedural style:

tidyNode tidy_get_body ( tidy object )

Object oriented style:

tidyNode tidy->body ( void )

This function returns a tidyNode object starting from the <body> tag of the tidy parse tree.

Пример 1. tidy_get_body() example

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

Результат выполнения данного примера:

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

Замечание: Эта функция доступна только в Движке Zend 2, что означает PHP >= 5.0.0.

See also tidy_get_head() and 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: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571