HUGO
Menu
GitHub 90265 stars Mastodon

transform.HTMLUnescape

Returns the given string, replacing each HTML entity with its corresponding character.
Syntax
transform.HTMLUnescape INPUT
Returns
string
Alias
htmlUnescape

Usage

The transform.HTMLUnescape function returns the given string, replacing each HTML entity with its corresponding character.

Examples

{{ transform.HTMLUnescape "Lilo & Stitch" }} → Lilo & Stitch
{{ transform.HTMLUnescape "7 > 6" }} → 7 > 6