After further searching I think I have the solution you need.
Use the “pre” tag and you will get the result you want.
Example:
<pre>
This will be presented in the browser
just like I write it here.
</pre>
You can also see this example: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_pre
I hope this answer is good enough.