What is CDATA in HTML? [duplicate]
问题 This question already has an answer here: When is a CDATA section necessary within a script tag? 15 answers What is the use of CDATA inside JavaScript tags and HTML? <script type=\"text/javascript\"> // <![CDATA[ // ]]> </script> 回答1: All text in an XML document will be parsed by the parser. But text inside a CDATA section will be ignored by the parser. CDATA - (Unparsed) Character Data The term CDATA is used about text data that should not be parsed by the XML parser. Characters like "<" and