---
updatedAt: 2025-05-20T20:28:51.000Z
agentTools:
  projectIndex: https://docs.documotor.com/llms.txt
---

# decode_html

Decode an encoded html string

# Definition

`string decode_html(string $string)`

Decodes an HTML encoded string.

# Parameters

<Glossary>string</Glossary> `$string`

HTML encoded string.

# Returns

<Glossary>string</Glossary>

An HTML decoded string.

# Examples

```text Transformation
{
    a: decode_html('Is &frac12; &lt; &frac34;?'),
    b: decode_html('&pound; &amp; &yen; are currency symbols.')
}
```

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