title: Insulating CDATA value from html
body: <p>I have a field in a grid with the following value: <code>"{&lt;dbid&gt;{D7E362F0-2333-4BD0-8159-85E6E26FF6B0}&lt;dbid&gt;}"</code> (see how this is likely also being parsed in your browser), so you don't see the xml tag brackets, value seen below is verbatim straight from the db.</p>
  
  <p>Loaded via ajax like this</p>
  
  <pre><code>&lt;cell style="margin-right:4px;"&gt;&lt;![CDATA["{&lt;dbid&gt;{D7E362F0-2333-4BD0-8159-85E6E26FF6B0}&lt;dbid&gt;}"^javascript:OpenAlarmDetail(""{&lt;dbid&gt;{D7E362F0-2333-4BD0-8159-85E6E26FF6B0}&lt;dbid&gt;}"");^_self]]&gt;&lt;/cell&gt;
  </code></pre>
  
  <p>The carats are for dhtmlx to create a hyperlink. Though I am using dhtmlx I have not tagged it for dhtmlx, since I don't think this problem necessarily is dhtmlx specific.</p>
  
  <p>The value gets transfered ok, however when displayed in the grid the tags are gone and when I ask for the value of the cell, it now looks like this:</p>
  
  <pre><code>"{&lt;dbid&gt;{3C59E779-57C0-4F48-900E-E2A256E37D2F}&lt;dbid&gt;}"&lt;/dbid&gt;&lt;/dbid&gt;^javascript:OpenAlarmDetail(""{&lt;dbid&gt;{3C59E779-57C0-4F48-900E-E2A256E37D2F}&lt;dbid&gt;}"");^_self
  </code></pre>
  
  <p>i.e. it now has closing tags attached to it.</p>
  
  <p>How do I insulate my value to prevent it from being parsed further by html, I thought double quotes were supposed to do the trick.</p>