| @@ 783-793 (lines=11) @@ | ||
| 780 | * @return static |
|
| 781 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 782 | */ |
|
| 783 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 784 | { |
|
| 785 | return static::create( |
|
| 786 | $this->utf8::html_entity_decode( |
|
| 787 | $this->str, |
|
| 788 | $flags, |
|
| 789 | $this->encoding |
|
| 790 | ), |
|
| 791 | $this->encoding |
|
| 792 | ); |
|
| 793 | } |
|
| 794 | ||
| 795 | /** |
|
| 796 | * Convert all applicable characters to HTML entities. |
|
| @@ 849-859 (lines=11) @@ | ||
| 846 | * @return static |
|
| 847 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 848 | */ |
|
| 849 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 850 | { |
|
| 851 | return static::create( |
|
| 852 | $this->utf8::htmlentities( |
|
| 853 | $this->str, |
|
| 854 | $flags, |
|
| 855 | $this->encoding |
|
| 856 | ), |
|
| 857 | $this->encoding |
|
| 858 | ); |
|
| 859 | } |
|
| 860 | ||
| 861 | /** |
|
| 862 | * Capitalizes the first word of the string, replaces underscores with |
|