mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-06 15:25:30 -04:00
24 lines
468 B
Markdown
24 lines
468 B
Markdown
---
|
|
title: plainify
|
|
linktitle: plainify
|
|
description: Strips any HTML and returns the plain text version of the provided string.
|
|
godocref:
|
|
date: 2017-02-01
|
|
publishdate: 2017-02-01
|
|
lastmod: 2017-02-01
|
|
categories: [functions]
|
|
tags: [strings]
|
|
signature:
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: []
|
|
deprecated: false
|
|
aliases: []
|
|
---
|
|
|
|
`plainify` strips any HTML and returns the plain text version of the provided string.
|
|
|
|
```
|
|
{{ "<b>BatMan</b>" | plainify }} → "BatMan"
|
|
```
|