| @@ 1276-1286 (lines=11) @@ | ||
| 1273 | * @return static |
|
| 1274 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1275 | */ |
|
| 1276 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1277 | { |
|
| 1278 | return static::create( |
|
| 1279 | $this->utf8::html_entity_decode( |
|
| 1280 | $this->str, |
|
| 1281 | $flags, |
|
| 1282 | $this->encoding |
|
| 1283 | ), |
|
| 1284 | $this->encoding |
|
| 1285 | ); |
|
| 1286 | } |
|
| 1287 | ||
| 1288 | /** |
|
| 1289 | * Convert all applicable characters to HTML entities. |
|
| @@ 1344-1354 (lines=11) @@ | ||
| 1341 | * @return static |
|
| 1342 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1343 | */ |
|
| 1344 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1345 | { |
|
| 1346 | return static::create( |
|
| 1347 | $this->utf8::htmlentities( |
|
| 1348 | $this->str, |
|
| 1349 | $flags, |
|
| 1350 | $this->encoding |
|
| 1351 | ), |
|
| 1352 | $this->encoding |
|
| 1353 | ); |
|
| 1354 | } |
|
| 1355 | ||
| 1356 | /** |
|
| 1357 | * Capitalizes the first word of the string, replaces underscores with |
|