mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
This commit is contained in:
24
docs/content/en/functions/transform/Plainify.md
Normal file
24
docs/content/en/functions/transform/Plainify.md
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
title: transform.Plainify
|
||||
linkTitle: plainify
|
||||
description: Returns a string with all HTML tags removed.
|
||||
categories: [functions]
|
||||
keywords: []
|
||||
menu:
|
||||
docs:
|
||||
parent: functions
|
||||
function:
|
||||
aliases: [plainify]
|
||||
returnType: string
|
||||
signatures: [transform.Plainify INPUT]
|
||||
relatedFunctions: []
|
||||
aliases: [/functions/plainify]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
{{ "<b>BatMan</b>" | plainify }} → "BatMan"
|
||||
```
|
||||
|
||||
See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].
|
||||
|
||||
[pagevars]: /variables/page/
|
Reference in New Issue
Block a user