diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-09-04 18:52:05 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-09-04 18:52:05 +0200 |
commit | 39fd3b557014e339bc6c68a7ff34a7734a735ee0 (patch) | |
tree | b73deb9fd547d283f2e5fb6a3b8393994c6c14f8 /content/en/methods/page/Plain.md | |
parent | dec8cd4ada29218971743333f8ac662a9c06aad8 (diff) | |
download | hugo-39fd3b557014e339bc6c68a7ff34a7734a735ee0.tar.gz hugo-39fd3b557014e339bc6c68a7ff34a7734a735ee0.zip |
Squashed 'docs/' changes from a49697e53..ccb1b97cb
ccb1b97cb Update blockquotes.md
a5f51431c Add new-in label
39dac5838 Document ContentWithoutSummary
de3c75694 Clarify blockquote render hook Markdown syntax
d32f7856d Document change to data type returned by render hook Text methods
83fe7ccc3 Document table render hooks
601234147 netlify: Hugo 0.134.0
a583640a0 Add support for Obsidian type blockquote alerts
3e0080861 Merge commit 'dec8cd4ada29218971743333f8ac662a9c06aad8'
2dde06576 output: Fix docshelper template lookup order for AMP pages
git-subtree-dir: docs
git-subtree-split: ccb1b97cbb11e60aab0108b33a270cccdd2218f6
Diffstat (limited to 'content/en/methods/page/Plain.md')
-rw-r--r-- | content/en/methods/page/Plain.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/en/methods/page/Plain.md b/content/en/methods/page/Plain.md index 3aae1ed61..06d2bde48 100644 --- a/content/en/methods/page/Plain.md +++ b/content/en/methods/page/Plain.md @@ -6,6 +6,8 @@ keywords: [] action: related: - methods/page/Content + - methods/page/Summary + - methods/page/ContentWithoutSummary - methods/page/RawContent - methods/page/PlainWords - methods/page/RenderShortcodes @@ -13,7 +15,7 @@ action: signatures: [PAGE.Plain] --- -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. +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. |