hugo/docs/content/en/functions/transform/HTMLUnescape.md
2023-10-20 09:43:56 +02:00

696 B

title linkTitle description categories keywords menu function relatedFunctions aliases
transform.HTMLUnescape htmlUnescape Returns the given string with HTML escape codes un-escaped.
functions
docs
parent
functions
aliases returnType signatures
htmlUnescape
string
transform.HTMLUnescape INPUT
transform.HTMLEscape
transform.HTMLUnescape
/functions/htmlunescape

Remember to pass the output of this to safeHTML if fully un-escaped characters are desired. Otherwise, the output will be escaped again as normal.

{{ htmlUnescape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache"