| 1 |
# load |
| 2 |
|
| 3 |
```php |
| 4 |
load ( string $str [, bool $lowercase = true [, bool $stripRN = true [, string $defaultBRText = DEFAULT_BR_TEXT [, string $defaultSpanText = DEFAULT_SPAN_TEXT [, int $options = 0 ]]]]]) : object |
| 5 |
``` |
| 6 |
|
| 7 |
Loads the provided HTML document string. |
| 8 |
|
| 9 |
| Parameter | Description |
| 10 |
| --------- | ----------- |
| 11 |
| `str` | The HTML document string. |
| 12 |
| `lowercase` | Tag names are parsed in lowercase letters if enabled. |
| 13 |
| `stripRN` | Newline characters are replaced by whitespace if enabled. |
| 14 |
| `defaultBRText` | Defines the default text to return for `<br>` elements. |
| 15 |
| `defaultSpanText` | Defines the default text to return for `<span>` elements. |
| 16 |
| `options` | Additional options for the parser. Currently supports `'HDOM_SMARTY_AS_TEXT'` to remove [](https://www.smarty.net/Smarty](https://www.smarty.net/](https://www.smarty.net/) scripts. |
| 17 |
|
| 18 |
Returns the object. |