Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Richard Barnet
July 1, 2003, 8:10 pm
rate this thread
from a <textarea>), when should I use <![CDATA[ ... ]]> as opposed to
<![CDATA[ ... ]]> ?
When I use the first one, I get a residual "]]>" that displays on the page.
I've noticed this problem on others' pages, too. I've also seen some sites
that use the latter, but this doesn't seem to make sense, and doesn't seem
to be explained anywhere that I can find.
<CDATA> sections are used in XML to contain free entered text that the
programmer has no control over. It's only purpose is to make sure that
the contents will work in the XML structure since someone could type in
<ABC>123</AABBCC> which would fail any XML parser.
Making this <![CDATA[<ABC>123</AABBCC>]]> causes the parser to accept
it. It is still up to the programmer to handle the text inside in a
Remove NOT from email address to reply. AntiSpam in action.