| @@ 1417-1427 (lines=11) @@ | ||
| 1414 | * @return static |
|
| 1415 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1416 | */ |
|
| 1417 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1418 | { |
|
| 1419 | return static::create( |
|
| 1420 | $this->utf8::html_entity_decode( |
|
| 1421 | $this->str, |
|
| 1422 | $flags, |
|
| 1423 | $this->encoding |
|
| 1424 | ), |
|
| 1425 | $this->encoding |
|
| 1426 | ); |
|
| 1427 | } |
|
| 1428 | ||
| 1429 | /** |
|
| 1430 | * Convert all applicable characters to HTML entities. |
|
| @@ 1485-1495 (lines=11) @@ | ||
| 1482 | * @return static |
|
| 1483 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1484 | */ |
|
| 1485 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1486 | { |
|
| 1487 | return static::create( |
|
| 1488 | $this->utf8::htmlentities( |
|
| 1489 | $this->str, |
|
| 1490 | $flags, |
|
| 1491 | $this->encoding |
|
| 1492 | ), |
|
| 1493 | $this->encoding |
|
| 1494 | ); |
|
| 1495 | } |
|
| 1496 | ||
| 1497 | /** |
|
| 1498 | * Capitalizes the first word of the string, replaces underscores with |
|