| @@ 1629-1639 (lines=11) @@ | ||
| 1626 | * @return static |
|
| 1627 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1628 | */ |
|
| 1629 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1630 | { |
|
| 1631 | return static::create( |
|
| 1632 | $this->utf8::html_entity_decode( |
|
| 1633 | $this->str, |
|
| 1634 | $flags, |
|
| 1635 | $this->encoding |
|
| 1636 | ), |
|
| 1637 | $this->encoding |
|
| 1638 | ); |
|
| 1639 | } |
|
| 1640 | ||
| 1641 | /** |
|
| 1642 | * Convert all applicable characters to HTML entities. |
|
| @@ 1701-1711 (lines=11) @@ | ||
| 1698 | * @return static |
|
| 1699 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1700 | */ |
|
| 1701 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1702 | { |
|
| 1703 | return static::create( |
|
| 1704 | $this->utf8::htmlentities( |
|
| 1705 | $this->str, |
|
| 1706 | $flags, |
|
| 1707 | $this->encoding |
|
| 1708 | ), |
|
| 1709 | $this->encoding |
|
| 1710 | ); |
|
| 1711 | } |
|
| 1712 | ||
| 1713 | /** |
|
| 1714 | * Capitalizes the first word of the string, replaces underscores with |
|