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 Jun 2011

view this page in

tidy::body

tidy_get_body

(PHP 5, PECL tidy 0.5.2-1.0)

tidy::body -- tidy_get_bodyبازگرداندن شی tidyNode با شروع از برچسب <body> درخت تحلیل tidy

Description

شیوه شی‌گرا

tidyNode tidy::body ( void )

شیوه روال‌گرا

tidyNode tidy_get_body ( tidy $object )

بازگرداندن شی tidyNode با شروع از برچسب <body> درخت تحلیل tidy.

Parameters

object

The Tidy object.

Return Values

بازگرداندن نسخه تشخیص داده شده HTML.

Warning

این تابع در Tidylib پیاده نشده و فعلا مقدار 0 بازمی‌گرداند.

Examples

Example #1 مثال tidy::getBody()

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

$tidy tidy_parse_string($html);

$body $tidy->Body();
echo 
$body->value;
?>

The above example will output:

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

Notes

Note: This function is only available with Zend Engine 2 (PHP >= 5.0.0).

See Also

  • tidy::head() - بازگرداندن شی tidyNode با شروع از برچسب <head> درخت تحلیل tidy
  • tidy::html() - بازگرداندن شی tidyNode با شروع از برچسب <html> درخت تحلیل tidy


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