<pre> and <code> still require you to escape all HTML special symbols. <script> and <style> do not.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xm...
I think HTML should have a dedicated tag for this, but sadly <script> is the closest thing that I know of.