@@ 1314-1324 (lines=11) @@ | ||
1311 | * @return static |
|
1312 | * <p>Object with the resulting $str after being html decoded.</p> |
|
1313 | */ |
|
1314 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
1315 | { |
|
1316 | return static::create( |
|
1317 | $this->utf8::html_entity_decode( |
|
1318 | $this->str, |
|
1319 | $flags, |
|
1320 | $this->encoding |
|
1321 | ), |
|
1322 | $this->encoding |
|
1323 | ); |
|
1324 | } |
|
1325 | ||
1326 | /** |
|
1327 | * Convert all applicable characters to HTML entities. |
|
@@ 1382-1392 (lines=11) @@ | ||
1379 | * @return static |
|
1380 | * <p>Object with the resulting $str after being html encoded.</p> |
|
1381 | */ |
|
1382 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
1383 | { |
|
1384 | return static::create( |
|
1385 | $this->utf8::htmlentities( |
|
1386 | $this->str, |
|
1387 | $flags, |
|
1388 | $this->encoding |
|
1389 | ), |
|
1390 | $this->encoding |
|
1391 | ); |
|
1392 | } |
|
1393 | ||
1394 | /** |
|
1395 | * Capitalizes the first word of the string, replaces underscores with |