PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 1.9.7
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v1.9.7
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
searchpro / simplehtmldom / manual / docs / api / simple_html_dom / __construct.md

__construct.md in BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript 1.9.7, at simplehtmldom/manual/docs/api/simple_html_dom/__construct.md

20 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 # __construct
2
3 ```php
4 __construct ( [ string $str = null [, bool $lowercase = true [, bool $forceTagsClosed = true [, string $target_charset = DEFAULT_TARGET_CHARSET [, bool $stripRN = true [, string $defaultBRText = DEFAULT_BR_TEXT [, string $defaultSpanText = DEFAULT_SPAN_TEXT [, int $options = 0 ]]]]]]]]) : object
5 ```
6
7 Creates a new `simple_html_dom` object.
8
9 | Parameter | Description
10 | --------- | -----------
11 | `str` | The HTML document string.
12 | `lowercase` | Tag names are parsed in lowercase letters if enabled.
13 | `forceTagsClosed` | Tags inside block tags are forcefully closed if the closing tag was omitted.
14 | `target_charset` | Defines the target charset for text returned by the parser.
15 | `stripRN` | Newline characters are replaced by whitespace if enabled.
16 | `defaultBRText` | Defines the default text to return for `<br>` elements.
17 | `defaultSpanText` | Defines the default text to return for `<span>` elements.
18 | `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.
19
20 Returns the object.