decode_html
Decode an encoded html string
Definition
string decode_html(string $string)
Decodes an HTML encoded string.
Parameters
string $string
HTML encoded string.
Returns
string
An HTML decoded string.
Examples
{
a: decode_html('Is ½ < ¾?'),
b: decode_html('£ & ¥ are currency symbols.')
}
{
"a": "Is ½ < ¾?",
"b": "£ & ¥ are currency symbols."
}
Updated about 1 year ago