PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 1.9.3
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v1.9.3
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 / str_get_html.md

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

22 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ---
2 title: str_get_html
3 ---
4
5 # str_get_html
6
7 ```php
8 str_get_html ( string $str [, 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 ]]]]]] )
9 ```
10
11 Parses the provided string and returns the DOM object.
12
13 | Parameter | Description
14 | --------- | -----------
15 | `str` | The HTML document string.
16 | `lowercase` | Forces lowercase matching of tags if enabled. This is very useful when loading documents with mixed naming conventions.
17 | `forceTagsClosed` | Obsolete. This parameter is no longer used by the parser.
18 | `target_charset` | Defines the target charset when returning text from the document.
19 | `stripRN` | If enabled, removes newlines before parsing the document.
20 | `defaultBRText` | Defines the default text to return for `<br>` elements.
21 | `defaultSpanText` | Defines the default text to return for `<span>` elements.
22