The <pre>
tag sounds like what you're looking for. From MDN: Whitespaces inside this element are displayed as typed.
<pre>
Hello
!!!
World
</pre>
becomes
Hello
!!!
World
You can also use the white-space
CSS property to achieve a similar effect on any tag, though it behaves slightly differently.
<span style="white-space:pre;">Hello
!!!
World
</span>