mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
19 lines
432 B
Markdown
19 lines
432 B
Markdown
---
|
|
title: plainify
|
|
description: Strips any HTML and returns the plain text version of the provided string.
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: functions
|
|
keywords: [strings]
|
|
signature: ["plainify INPUT"]
|
|
relatedfuncs: [jsonify]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ "<b>BatMan</b>" | plainify }} → "BatMan"
|
|
```
|
|
|
|
See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].
|
|
|
|
[pagevars]: /variables/page/
|