HTML < and > symbols rendered as &lt; and &gt;

I’m sure this is an elementary error but why is <p> (and other HTML tags) being rendered as &lt;p&gt; in the generated HTML?

My index.html file is:

<body>
	<h1>{{ section.title }}</h1>
	{{ section.content }}
</body>

my _index.md file is:

+++
title = "Test"
+++
Test

and the generated html is:

<body>
	<h1>Test</h1>
	&lt;p&gt;Test&lt;&#x2F;p&gt;

</body>

You need to mark it as safe {{ section.content | safe }}

1 Like

Ah! Many thanks!