| @@ 1343-1353 (lines=11) @@ | ||
| 1340 | * @return static |
|
| 1341 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1342 | */ |
|
| 1343 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1344 | { |
|
| 1345 | return static::create( |
|
| 1346 | $this->utf8::html_entity_decode( |
|
| 1347 | $this->str, |
|
| 1348 | $flags, |
|
| 1349 | $this->encoding |
|
| 1350 | ), |
|
| 1351 | $this->encoding |
|
| 1352 | ); |
|
| 1353 | } |
|
| 1354 | ||
| 1355 | /** |
|
| 1356 | * Convert all applicable characters to HTML entities. |
|
| @@ 1411-1421 (lines=11) @@ | ||
| 1408 | * @return static |
|
| 1409 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1410 | */ |
|
| 1411 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1412 | { |
|
| 1413 | return static::create( |
|
| 1414 | $this->utf8::htmlentities( |
|
| 1415 | $this->str, |
|
| 1416 | $flags, |
|
| 1417 | $this->encoding |
|
| 1418 | ), |
|
| 1419 | $this->encoding |
|
| 1420 | ); |
|
| 1421 | } |
|
| 1422 | ||
| 1423 | /** |
|
| 1424 | * Capitalizes the first word of the string, replaces underscores with |
|