CDATASection

by kalai 2010-01-27 20:27:19

<description>
<![CDATA[ <p>Good relations have I with the Wookies</p> ]]>
</description>

The example above shows a block of CDATA, enclosing serialized HTML, within an RSS <description> element.


The CDATASection interface inherits from CharacterData through Text, and represents a CDATA section in XML.

CDATA sections are used to escape blocks of text that would otherwise be treated as markup. In web development they're often used for including unpredictable HTML inside another form of XML, or for programmatic code like scripts and style information.

A CDATASection node cannot have children.

Tagged in:

733
like
0
dislike
0
mail
flag

You must LOGIN to add comments