@@ 1357-1367 (lines=11) @@ | ||
1354 | * @return static |
|
1355 | * <p>Object with the resulting $str after being html decoded.</p> |
|
1356 | */ |
|
1357 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
1358 | { |
|
1359 | return static::create( |
|
1360 | $this->utf8::html_entity_decode( |
|
1361 | $this->str, |
|
1362 | $flags, |
|
1363 | $this->encoding |
|
1364 | ), |
|
1365 | $this->encoding |
|
1366 | ); |
|
1367 | } |
|
1368 | ||
1369 | /** |
|
1370 | * Convert all applicable characters to HTML entities. |
|
@@ 1425-1435 (lines=11) @@ | ||
1422 | * @return static |
|
1423 | * <p>Object with the resulting $str after being html encoded.</p> |
|
1424 | */ |
|
1425 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
1426 | { |
|
1427 | return static::create( |
|
1428 | $this->utf8::htmlentities( |
|
1429 | $this->str, |
|
1430 | $flags, |
|
1431 | $this->encoding |
|
1432 | ), |
|
1433 | $this->encoding |
|
1434 | ); |
|
1435 | } |
|
1436 | ||
1437 | /** |
|
1438 | * Capitalizes the first word of the string, replaces underscores with |