mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
24 lines
517 B
Markdown
24 lines
517 B
Markdown
---
|
|
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/
|