mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
960 B
960 B
title | description | categories | keywords | action | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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. The plain content does not include front matter.
To prevent Go's html/template package from escaping HTML entities, pass the result through the htmlUnescape
function.
{{ .Plain | htmlUnescape }}