当前位置: 动力学知识库 > 问答 > 编程问答 >

Java XML resource bundle and HTML content

问题描述:

Need to store HTML content as a value in the resource bundle (XML format). The HTML tags are conflicting with the XML tags. How can I store the HTML string without using character entity references (< and >)

网友答案:

Put it between <![CDATA[ and ]]>.

网友答案:

have you tried using "CDATA ". CDATA section will be ignored by the parser.

see example here. http://www.w3schools.com/xml/xml_cdata.asp

分享给朋友:
您可能感兴趣的文章:
随机阅读: