# DecodeForHtml()

Decodes the given encoded string.

**Requires Extension:** [ESAPI extension](https://download.lucee.org/#37C61C0A-5D7E-4256-8572639BE0CF5838)

```
DecodeForHtml( string=string );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| string | string | Yes | string to decode |  |

# Examples

```cfml
	dec=decodeForHTML('&lt;script&gt;');
	dump(dec);
```







# Categories

[Encode/Decode](../../categories/esapi.md), [HTML](../../categories/html.md)

# See Also

[string.decodeForHTML()](../objects/string/decodeforhtml.md)