I seem to recall that there is an HTML tag that escapes absolutely everything inside it except the matching closing tag. Kind of like <plaintext>
but not fundamentally broken.
views:
616answers:
3
+5
A:
<xmp> is the tag you are looking for:
<xmp>some stuff <tags></tags> too</xmp>
But, since it's depricated, the best you can get is <pre>.
EndangeredMassa
2008-12-17 00:56:53
Sweet! I've been wanting a tag like this!
Software Monkey
2008-12-17 04:43:09
<xmp> is deprecated -- it should not be used. See http://www.htmlcodetutorial.com/_XMP.html.
Ken Paul
2008-12-17 05:29:10
A:
There is also the XML CDATA:
<![CDATA[stuff that is <tag>never</tag> parsed]]>
Whether this works in an HTML document is probably up to the browser. However, it should certainly work in an XHTML document.
Greg Hewgill
2008-12-17 01:24:01
+1
A:
You need to use <pre><code> ... </code></pre>
.
<xmp>
is deprecated and should not be used. See http://www.htmlcodetutorial.com/_XMP.html.
Ken Paul
2008-12-17 05:36:38