Function __global->extract_html_body
Definitions
sources/xhtml.php
- Turn a full HTML document into an HTML fragment.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $html | string | No | No | required parameter | N/A | N/A | The document |
Returns
- The fragment
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Turn a full HTML document into an HTML fragment.
*
* @param string $html The document
* @return string The fragment
*/
function extract_html_body(string $html) : string
* Turn a full HTML document into an HTML fragment.
*
* @param string $html The document
* @return string The fragment
*/
function extract_html_body(string $html) : string

