<klip>
   <identity>
      <title>
         API: Klip.processEntities()
      </title>
   </identity>
   <locations>
      <contentsource>
         http://support.klipfolio.com/files/demo/demo.xml
      </contentsource>
      <icon>
         http://www.klipfolio.com/static/klips/klipfolio/sample_icon.png
      </icon>
      <banner>
         http://www.klipfolio.com/static/klips/klipfolio/sample_banner.png   
      </banner>
   </locations>
   <klipscript>
   <![CDATA[

function onLoad() {  

    var text = 
    "<x>\r\n" +
    "<y>B&amp;B Breakfast</y>\r\n\r\n" +
    "<z>text with &quot;, &lt;, &gt;, and '    characters</z>\r\n" +
    "</x>\r\n";

    trace( "# text\r\n" );
    trace( text + "\r\n\r\n"   );

    trace( "# Klip.processEntities( text ) \r\n" );
    trace( Klip.processEntities( text )  );
 }   
 

function onRefresh()
{
    var xml = "<xml><item><link></link><description>" +
          "(See Debug Window for output)" +
          "</description></item></xml>";
             
     return Engines.Data.process( xml );
}

   ]]>
   </klipscript>
</klip>
