Plain
Returns the rendered content of the given page, removing all HTML tags.
Syntax
PAGE.Plain
Returns
string
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 }}Last updated:
June 18, 2026
:
Merge commit 'c86d9f4aa8a58931f52df6516f10b67c807505fb' (be780afa7)
Improve this page