decode_html

Modified on Thu, 9 Jul at 10:49 AM

decode_html

TABLE OF CONTENTS

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

Transformation
{
    a: decode_html(`Is ½ < ¾?`),
    b: decode_html(`£ & ¥ are currency symbols.`)
}
Result
{
  "a": "Is ½ < ¾?",
  "b": "£ & ¥ are currency symbols."
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article