KDM_CDATA
Name
KDM_CDATA
Purpose
Wrap a string in CDATA tags: "<![CDATA[" + string + "]]>"
Category
Strings, KML
Calling Sequence
result = KDM_CDATA( string )
Inputs
string: A string or string array
Outputs
this version returns the input wrapped in the CDATA tag (for
embedding HTML in KML. If the input is an array of strings each
string is wrapped.
Restrictions
The function will not double-wrap, even if you want it to.
Example
IDL> print, kdm_cdata('foo')
<![CDATA[foo]]>
IDL> print, kdm_cdata( [ 'foo', 'bar' ] )
<![CDATA[foo]]>
Modification History
Written by: Ken Mankoff. 2009
2009-09-22: Rewrote to check for double-wrapping with arrays.