XML Java Resource and HTML Content

You must save the HTML content as a value in the resource set (XML format). HTML tags contradict XML tags. How to save HTML string without reference to character entities(< and >)

+3
source share
2 answers

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

+5
source

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

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

+2
source

All Articles