| @@ 814-824 (lines=11) @@ | ||
| 811 | * @return static |
|
| 812 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 813 | */ |
|
| 814 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 815 | { |
|
| 816 | return static::create( |
|
| 817 | $this->utf8::html_entity_decode( |
|
| 818 | $this->str, |
|
| 819 | $flags, |
|
| 820 | $this->encoding |
|
| 821 | ), |
|
| 822 | $this->encoding |
|
| 823 | ); |
|
| 824 | } |
|
| 825 | ||
| 826 | /** |
|
| 827 | * Convert all applicable characters to HTML entities. |
|
| @@ 880-890 (lines=11) @@ | ||
| 877 | * @return static |
|
| 878 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 879 | */ |
|
| 880 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 881 | { |
|
| 882 | return static::create( |
|
| 883 | $this->utf8::htmlentities( |
|
| 884 | $this->str, |
|
| 885 | $flags, |
|
| 886 | $this->encoding |
|
| 887 | ), |
|
| 888 | $this->encoding |
|
| 889 | ); |
|
| 890 | } |
|
| 891 | ||
| 892 | /** |
|
| 893 | * Capitalizes the first word of the string, replaces underscores with |
|