Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About ![CDATA[, what is it? [duplicate]

Possible Duplicate:
what is the meaning of CDATA

What is, and when is used the ![CDATA[ string/variable/constant? (I don't know what is it)

like image 455
ibito Avatar asked Dec 20 '10 21:12

ibito


1 Answers

It is a way to escape large sections of text in XML documents.

From wikipedia:

In an XML document or external parsed entity, a CDATA section is a section of element content that is marked for the parser to interpret as only character data, not markup.

By the way, it is <![CDATA[]]>, not ![CDATA[]].

like image 98
Oded Avatar answered Sep 19 '22 13:09

Oded