| @@ 804-814 (lines=11) @@ | ||
| 801 | * @return static |
|
| 802 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 803 | */ |
|
| 804 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 805 | { |
|
| 806 | return static::create( |
|
| 807 | $this->utf8::html_entity_decode( |
|
| 808 | $this->str, |
|
| 809 | $flags, |
|
| 810 | $this->encoding |
|
| 811 | ), |
|
| 812 | $this->encoding |
|
| 813 | ); |
|
| 814 | } |
|
| 815 | ||
| 816 | /** |
|
| 817 | * Convert all applicable characters to HTML entities. |
|
| @@ 870-880 (lines=11) @@ | ||
| 867 | * @return static |
|
| 868 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 869 | */ |
|
| 870 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 871 | { |
|
| 872 | return static::create( |
|
| 873 | $this->utf8::htmlentities( |
|
| 874 | $this->str, |
|
| 875 | $flags, |
|
| 876 | $this->encoding |
|
| 877 | ), |
|
| 878 | $this->encoding |
|
| 879 | ); |
|
| 880 | } |
|
| 881 | ||
| 882 | /** |
|
| 883 | * Capitalizes the first word of the string, replaces underscores with |
|