hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

htmlUnescape.md (718B)

    1 ---
    2 title: htmlUnescape
    3 linktitle: htmlUnescape
    4 description: Returns the given string with HTML escape codes un-escaped.
    5 date: 2017-02-01
    6 publishdate: 2017-02-01
    7 lastmod: 2017-02-01
    8 categories: [functions]
    9 menu:
   10   docs:
   11     parent: "functions"
   12 keywords: []
   13 signature: ["htmlUnescape INPUT"]
   14 workson: []
   15 hugoversion:
   16 relatedfuncs: [htmlEscape]
   17 deprecated: false
   18 aliases: []
   19 ---
   20 
   21 `htmlUnescape` returns the given string with HTML escape codes un-escaped.
   22 
   23 Remember to pass the output of this to `safeHTML` if fully un-escaped characters are desired. Otherwise, the output will be escaped again as normal.
   24 
   25 ```
   26 {{ htmlUnescape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache"
   27 ```