mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00: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
333 B
333 B
title, description, categories, keywords, action, aliases
| title | description | categories | keywords | action | aliases | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| transform.Plainify | Returns a string with all HTML tags removed. |
|
|
{{ "<b>BatMan</b>" | plainify }} → BatMan