Display HubL code in pre tag

I’m writing a blog about the benefits of if / unless conditions within HubL code and I want to show an example of the code snippet on my page using the html pre tag.

Unfortunately the pre tag within the page editor only displays the HubL code when remove all {{ }} and {% %} symbols.

Is there a way to display the code snippet which includes these brackets?

Add the raw tag around your pre tags so HubSpot knows not to render the code.

{% raw %}
 <pre></pre>
{% endraw %}

Excellent, thanks @alyssamwilie :slightly_smiling_face: