← All built-ins / html_entity_decode()
html_entity_decode()
html_entity_decode(string $s): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | entity-encoded text |
Return value
The decoded text ("&" becomes "&").
Example
echo html_entity_decode("Tom & Jerry <3");Tom & Jerry <3