mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-18 20:56:53 -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"