mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-20 19:34:58 -05:00
24 lines
696 B
Markdown
24 lines
696 B
Markdown
---
|
|
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"
|
|
```
|