rabbitmq/rabbitmq-website

Tutorial code is displayed html encoded

aland opened this issue · 0 comments

Describe the bug

Tutorial pages with code example have html encoded entities replacing characters in the code, e.g. < becomes &lt;, & becomes &amp; etc
I noticed this on the php pages, but it doesn't seem to be unique to them

Reproduction steps

  1. Visit any tutorial pages with code examples, e.g. https://www.rabbitmq.com/tutorials/tutorial-two-php#putting-it-all-together
  2. Code may be mangled, e.g. &lt;?php

...

Expected behavior

Code should be displayed as is, not encoded with html entities

Additional context

https://www.rabbitmq.com/tutorials/tutorial-five-php
https://www.rabbitmq.com/tutorials/tutorial-five-javascript