mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-01 03:02:38 +00:00
Add detail to description of .Plain page variable (#1870)
Co-authored-by: anakinsleftleg <77084568+anakinsleftleg@users.noreply.github.com> Co-authored-by: anakinsleftleg <77084568+anakinsleftleg@users.noreply.github.com>
This commit is contained in:
@@ -111,7 +111,7 @@ See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo].
|
||||
: the Permanent link for this page; see [Permalinks](/content-management/urls/)
|
||||
|
||||
.Plain
|
||||
: the Page content stripped of HTML tags and presented as a string.
|
||||
: the Page content stripped of HTML tags and presented as a string. You may need to pipe the result through the [`htmlUnescape`](/functions/htmlunescape/) function when rendering this value with the HTML [output format](/templates/output-formats#output-format-definitions).
|
||||
|
||||
.PlainWords
|
||||
: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://pkg.go.dev/strings#Fields).
|
||||
|
||||
Reference in New Issue
Block a user