mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
This commit is contained in:
24
docs/content/en/functions/transform/HTMLUnescape.md
Normal file
24
docs/content/en/functions/transform/HTMLUnescape.md
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
title: transform.HTMLUnescape
|
||||
linkTitle: htmlUnescape
|
||||
description: Returns the given string with HTML escape codes un-escaped.
|
||||
categories: [functions]
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: functions
|
||||
function:
|
||||
aliases: [htmlUnescape]
|
||||
returnType: string
|
||||
signatures: [transform.HTMLUnescape INPUT]
|
||||
relatedFunctions:
|
||||
- transform.HTMLEscape
|
||||
- transform.HTMLUnescape
|
||||
aliases: [/functions/htmlunescape]
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
```go-html-template
|
||||
{{ htmlUnescape "Hugo & Caddy > WordPress & Apache" }} → "Hugo & Caddy > WordPress & Apache"
|
||||
```
|
Reference in New Issue
Block a user