mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
946e6af0bb
None of these are useful as plain strings in the templates, which forces the users to do `transform.Plainify "foo" | safeHTML`. If people have trust issues with the output of these functions, they need to just stop using them. Closes #8732
16 lines
333 B
Markdown
16 lines
333 B
Markdown
---
|
|
title: transform.Plainify
|
|
description: Returns a string with all HTML tags removed.
|
|
categories: []
|
|
keywords: []
|
|
action:
|
|
aliases: [plainify]
|
|
related: []
|
|
returnType: template.HTML
|
|
signatures: [transform.Plainify INPUT]
|
|
aliases: [/functions/plainify]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ "<b>BatMan</b>" | plainify }} → BatMan
|
|
```
|