github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/htmlUnescape.md (about)

     1  ---
     2  title: htmlUnescape
     3  linktitle: htmlUnescape
     4  description: Returns the given string with HTML escape codes un-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: []
    14  signature: ["htmlUnescape INPUT"]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: [htmlEscape]
    18  deprecated: false
    19  aliases: []
    20  ---
    21  
    22  `htmlUnescape` returns the given string with HTML escape codes un-escaped. 
    23  
    24  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.
    25  
    26  ```
    27  {{ htmlUnescape "Hugo & Caddy > Wordpress & Apache" }} → "Hugo & Caddy > Wordpress & Apache"
    28  ```