File "prepare.md"

Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/simplehtmldom/simplehtmldom/docs/HtmlDocument/prepare.md
File size: 676 bytes
MIME-type: text/plain
Charset: utf-8

 
Open Back
```php
prepare ( string $str [, bool $lowercase = true [, string $defaultBRText = DEFAULT_BR_TEXT [, string $defaultSpanText = DEFAULT_SPAN_TEXT ]]] )
```

Initializes the DOM object.

| Parameters        | Description                                               |
|-------------------|-----------------------------------------------------------|
| `str`             | The HTML document string.                                 |
| `lowercase`       | Tag names are parsed in lowercase letters if enabled.     |
| `defaultBRText`   | Defines the default text to return for `<br>` elements.   |
| `defaultSpanText` | Defines the default text to return for `<span>` elements. |