transform.HTMLEscape
Syntax
transform.HTMLEscape INPUT ⟼ string
Alias
htmlEscape
In the result &
becomes &
and so on. It escapes only: <
, >
, &
, '
and "
.
{{ htmlEscape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache"