| @@ 1262-1272 (lines=11) @@ | ||
| 1259 | * @return static |
|
| 1260 | * <p>Object with the resulting $str after being html decoded.</p> |
|
| 1261 | */ |
|
| 1262 | public function htmlDecode(int $flags = \ENT_COMPAT): self |
|
| 1263 | { |
|
| 1264 | return static::create( |
|
| 1265 | $this->utf8::html_entity_decode( |
|
| 1266 | $this->str, |
|
| 1267 | $flags, |
|
| 1268 | $this->encoding |
|
| 1269 | ), |
|
| 1270 | $this->encoding |
|
| 1271 | ); |
|
| 1272 | } |
|
| 1273 | ||
| 1274 | /** |
|
| 1275 | * Convert all applicable characters to HTML entities. |
|
| @@ 1330-1340 (lines=11) @@ | ||
| 1327 | * @return static |
|
| 1328 | * <p>Object with the resulting $str after being html encoded.</p> |
|
| 1329 | */ |
|
| 1330 | public function htmlEncode(int $flags = \ENT_COMPAT): self |
|
| 1331 | { |
|
| 1332 | return static::create( |
|
| 1333 | $this->utf8::htmlentities( |
|
| 1334 | $this->str, |
|
| 1335 | $flags, |
|
| 1336 | $this->encoding |
|
| 1337 | ), |
|
| 1338 | $this->encoding |
|
| 1339 | ); |
|
| 1340 | } |
|
| 1341 | ||
| 1342 | /** |
|
| 1343 | * Capitalizes the first word of the string, replaces underscores with |
|