Parse your character data using CDATA section
XML parser normally parse all the text in an XML document. Characters such as less than (<), greater than(>), ampersands(&) etc cause problems for the XML processor/parser. “<” parser interprets it as the start of a new element. “&” parser interprets it as the start of an character entity. JavaScriptcode,contains a lot of…