mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
781 B
781 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Plain | Returns the rendered content of the given page, removing all HTML tags. |
|
The Plain method on a Page object renders Markdown and shortcodes to HTML, then strips the HTML tags. It does not strip HTML entities.
To prevent Go's html/template package from escaping HTML entities, pass the result through the htmlUnescape function.
{{ .Plain | htmlUnescape }}