| @@ 839-849 (lines=11) @@ | ||
| 836 | * @return static |
|
| 837 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 838 | */ |
|
| 839 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 840 | { |
|
| 841 | return static::create( |
|
| 842 | $this->utf8::html_entity_decode( |
|
| 843 | $this->str, |
|
| 844 | $flags, |
|
| 845 | $this->encoding |
|
| 846 | ), |
|
| 847 | $this->encoding |
|
| 848 | ); |
|
| 849 | } |
|
| 850 | ||
| 851 | /** |
|
| 852 | * Convert all applicable characters to HTML entities. |
|
| @@ 905-915 (lines=11) @@ | ||
| 902 | * @return static |
|
| 903 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 904 | */ |
|
| 905 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 906 | { |
|
| 907 | return static::create( |
|
| 908 | $this->utf8::htmlentities( |
|
| 909 | $this->str, |
|
| 910 | $flags, |
|
| 911 | $this->encoding |
|
| 912 | ), |
|
| 913 | $this->encoding |
|
| 914 | ); |
|
| 915 | } |
|
| 916 | ||
| 917 | /** |
|
| 918 | * Capitalizes the first word of the string, replaces underscores with |
|