diff options
Diffstat (limited to 'docs/content/en/functions/htmlEscape.md')
-rw-r--r-- | docs/content/en/functions/htmlEscape.md | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/docs/content/en/functions/htmlEscape.md b/docs/content/en/functions/htmlEscape.md index 652492c72..0ee8fa4d2 100644 --- a/docs/content/en/functions/htmlEscape.md +++ b/docs/content/en/functions/htmlEscape.md @@ -1,25 +1,17 @@ --- title: htmlEscape -linktitle: description: Returns the given string with the reserved HTML codes escaped. -date: 2017-02-01 -publishdate: 2017-02-01 -lastmod: 2017-02-01 categories: [functions] menu: docs: - parent: "functions" + parent: functions keywords: [strings, html] signature: ["htmlEscape INPUT"] -workson: [] -hugoversion: relatedfuncs: [htmlUnescape] -deprecated: false -aliases: [] --- In the result `&` becomes `&` and so on. It escapes only: `<`, `>`, `&`, `'` and `"`. -``` +```go-html-template {{ htmlEscape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache" ``` |