PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / simplehtmldom / simplehtmldom / docs / HtmlNode / text.md

text.md in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.7.0, at vendor/simplehtmldom/simplehtmldom/docs/HtmlNode/text.md

23 lines 596 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ```php
2 text ( [ bool $trim = true ] ) : string
3 ```
4
5 | Parameter | Description |
6 |-----------|------------------------------------------------|
7 | `trim` | Removes whitespace around the text if enabled. |
8
9 Returns the text representation of the current node and its descendants.
10
11 **Remarks**
12
13 * You can use the shorthand version [](__get.md`$node->plaintext`](__get.md](__get.md) instead of
14 `$node->text()` which also works on the document level (automatically selects
15 the root element of the document).
16
17 **Examples**
18
19 ```php
20 $node->text();
21 $node->plaintext;
22 $html->plaintext;
23 ```