mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
628 B
628 B
title, linkTitle, description, categories, keywords, menu, function, relatedFunctions, aliases
| 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"