| @@ 1643-1653 (lines=11) @@ | ||
| 1640 | * @return static |
|
| 1641 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1642 | */ |
|
| 1643 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1644 | { |
|
| 1645 | return static::create( |
|
| 1646 | $this->utf8::html_entity_decode( |
|
| 1647 | $this->str, |
|
| 1648 | $flags, |
|
| 1649 | $this->encoding |
|
| 1650 | ), |
|
| 1651 | $this->encoding |
|
| 1652 | ); |
|
| 1653 | } |
|
| 1654 | ||
| 1655 | /** |
|
| 1656 | * Convert all applicable characters to HTML entities. |
|
| @@ 1715-1725 (lines=11) @@ | ||
| 1712 | * @return static |
|
| 1713 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1714 | */ |
|
| 1715 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1716 | { |
|
| 1717 | return static::create( |
|
| 1718 | $this->utf8::htmlentities( |
|
| 1719 | $this->str, |
|
| 1720 | $flags, |
|
| 1721 | $this->encoding |
|
| 1722 | ), |
|
| 1723 | $this->encoding |
|
| 1724 | ); |
|
| 1725 | } |
|
| 1726 | ||
| 1727 | /** |
|
| 1728 | * Capitalizes the first word of the string, replaces underscores with |
|