github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/htmlEscape.md (about) 1 --- 2 title: htmlEscape 3 linktitle: 4 description: Returns the given string with the reserved HTML codes escaped. 5 godocref: 6 date: 2017-02-01 7 publishdate: 2017-02-01 8 lastmod: 2017-02-01 9 categories: [functions] 10 menu: 11 docs: 12 parent: "functions" 13 keywords: [strings, html] 14 signature: ["htmlEscape INPUT"] 15 workson: [] 16 hugoversion: 17 relatedfuncs: [htmlUnescape] 18 deprecated: false 19 aliases: [] 20 --- 21 22 In the result `&` becomes `&` and so on. It escapes only: `<`, `>`, `&`, `'` and `"`. 23 24 ``` 25 {{ htmlEscape "Hugo & Caddy > Wordpress & Apache" }} → "Hugo & Caddy > Wordpress & Apache" 26 ```