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 }}To render the content in a named scope, call Markup.Render.Plain on a Page object.
Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page