Debian Codegraph @

docs/content/en/methods/page/RawContent.md

raw
1 ---
2 title: RawContent
3 description: Returns the raw content of the given page.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: string
9 signatures: [PAGE.RawContent]
10 ---
11
12 The `RawContent` method on a `Page` object returns the raw content. The raw content does not include front matter.
13
14 ```go-html-template
15 {{ .RawContent }}
16 ```
17
18 This is useful when rendering a page in a plain text [output format](g).
19
20 > [!NOTE]
21 > [Shortcodes](g) within the content are not rendered. To get the raw content with shortcodes rendered, use the [`RenderShortcodes`][] method on a `Page` object.
22
23 [`RenderShortcodes`]: /methods/page/rendershortcodes/