summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/page/RawContent.md
blob: 41215ef53c6d3f8808a020262ffc7a7db95700b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
title: RawContent
description: Returns the raw content of the given page.
categories: []
keywords: []
params:
  functions_and_methods:
    returnType: string
    signatures: [PAGE.RawContent]
---

The `RawContent` method on a `Page` object returns the raw content. The raw content does not include front matter.

```go-html-template
{{ .RawContent }}
```

This is useful when rendering a page in a plain text [output format](g).

> [!note]
> [Shortcodes](g) within the content are not rendered. To get the raw content with shortcodes rendered, use the [`RenderShortcodes`] method on a `Page` object.

[`RenderShortcodes`]: /methods/page/rendershortcodes/