Home > Web Front-end > CSS Tutorial > Display the content in CDATA (which may be non-standard Html code) in Html mode. _Experience exchange

Display the content in CDATA (which may be non-standard Html code) in Html mode. _Experience exchange

WBOY
Release: 2016-05-16 12:07:58
Original
1598 people have browsed it

Not long ago, I wrote an article on the combination of XML I originally wanted to write an example, but then I checked on Google and found that someone had already written it. Just at: http://java.blogger.cn/wuyu/posts/1460.aspx


Note: xsl’s disable-output-escaping="yes"

The core Just use disable-output-escaping="yes"

MSDN describes it as follows:

disable-output-escaping
Default is "no". If the value is " yes", a text node generated by instantiating the element will be output without any escaping. For example, the following generates the single character "Note?? disable-output-escaping="yes" can be used to generate non-well-formed documents, and thus should be used with caution, because non-well-formed output may generate errors in certain circumstances. For example, transformNodeToObject to an XML document requires that the result be well-formed and thus may not complete ifdisable-output-escaping has affected the well-formedness of the document. Consider disable-output-escaping="yes" an advanced feature to be used only when the potential dangers are understood.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template