summaryrefslogtreecommitdiffstats
path: root/content/en/functions/plainify.md
blob: 78f52683bfe3a5c68cc6a6574063c7d7ac95eba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
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/