>  Docs Center  >  Libraries  >  Mankoff  >  KDM_CDATA
Libraries

KDM_CDATA

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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us