Why stackoverflow's google prettifier works with , e.t.c tags in or tag? -



Why stackoverflow's google prettifier works with <body>, <html> e.t.c tags in <code> or <pre> tag? -

i asked question before why <code> tag not back upwards <html>, <head>, <body> tags. reply got not supported. few days back, in meta.stackoverflow.com, saw question stackoverflow's code highlighter (some issue). someone, answered google prettifier. noticed , remembered it. google prettifier, recommends utilize <code> or <pre> tags code prettifying. how stackoverflow's code tag back upwards html tags display code?

the <code> element back upwards arbitrary content. have encode html int here, this:

<code> &lt;html&gt; html document &lt;/html&gt; </code>

that's stackoverflow if type

<html> html document </html>

html

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -