tidy::body

tidy_get_body

Returns a `tidyNode` object starting from the <body> tag of the tidy parse tree

&reftitle.description;

&style.oop;

public ``tidyNode``null```tidy::body`

&style.procedural;

``tidyNode``null```tidy_get_body` `tidy` `tidy`

Returns a `tidyNode` object starting from the <body> tag of the tidy parse tree.

&reftitle.parameters;

`tidy`

- &tidy.object;

&reftitle.returnvalues;

Returns a `tidyNode` object starting from the <body> tag of the tidy parse tree.

&reftitle.examples;

### `tidy::getBody` example

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

&example.outputs;

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

&reftitle.seealso;

- `tidy::head`
- `tidy::html`