html - How to simulate xmp bahavior -
i read xmp tag deprecated, need output code plain text. there way how simulate xmp tag behavior? help.
you cannot simulate special parsing mode of xmp
elements in html, except in genuine xhtml (i.e., xhtml served xml media type), can use cdata
sections. reason low-level parsing of html, hard-wired browsers.
so if don’t want use xmp
, way “escape” characters “&” , “<” in content. note html5 drafts require browsers keep supporting xmp
(while declaring obsolete , forbidden).
Comments
Post a Comment