mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
628 B
628 B
title | linkTitle | description | categories | keywords | menu | function | relatedFunctions | aliases | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
transform.HTMLEscape | htmlEscape | Returns the given string with the reserved HTML codes escaped. |
|
|
|
|
|
In the result &
becomes &
and so on. It escapes only: <
, >
, &
, '
and "
.
{{ htmlEscape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache"