3 ms·
<pre> and <code> still require you to escape all HTML special symbols. <script> and <style> do not.
by BrainVirus 4y ago
<pre> and <code> still require you to escape all HTML special symbols. <script> and <style> do not.
- krapp 4y agowhat about <xmp>?
- BrainVirus 4y agoI don't know what it does in practice, since it's obsolete. Heck, I've never even heard about it until right now. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp 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.