Files
hugo/content/en/functions/htmlUnescape.md
T
2023-04-01 08:29:16 -07:00

592 B

title, description, categories, menu, keywords, signature, relatedfuncs
title description categories menu keywords signature relatedfuncs
htmlUnescape Returns the given string with HTML escape codes un-escaped.
functions
docs
parent
functions
htmlUnescape INPUT
htmlEscape

htmlUnescape returns the given string with HTML escape codes un-escaped.

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"