XML contents inside a cell

I have contents inside a cell that include XML tags. I am using CDATA to enclose it, but when it displays in the grid, all XML tags inside the cell are removed.



XML being loaded:





1

1

10277

JL-5500-N0/JL-5500

Failed

<![CDATA[
[Adapter exception: ][Parsing error during logout:][Encountered "" at line 0, column 0.
Was expecting:
...]
]]>







Output inside 6th cell of the grid:

[Adapter exception: ][Parsing error during logout:][Encountered “” at line 0, column 0. Was expecting: … ]



Note that the and tags are missing. Any idea how I can solve this issue so the xml tags are displayed within the cell? Thanks. (I am using version 1.6 Pro of dhtmlxGrid).

There are two ways
a) use text based column types ( rotxt,edtxt,txttxt,corotxt )  - such column types will treat incoming data as text ( not as HTML ) and will render in correctly

or

b) replace special chars with  entities
<![CDATA[
[Adapter exception: ][Parsing error during logout:][Encountered "<EOF>" at line 0, column 0.
Was expecting:
<HEADER> ...]
]]>