Serialization of items with quotes


I have the following XML that I feed into the tree:

<?xml version="1.0"?>

I then try to serialize the tree back to XML with the serializeTree() method, but I get the following invalid XML as result:

<?xml version="1.0"?>

I have tried to set the serialization level, but none of the parameters seems to affect how the item text is serialized. Setting userDataAsCData to true works wonders for the user data. It would be nice to have a similar setting for the item text.

I have also tried to serialize to JSON, but the problem remains.

We use dhtmlxSuite_pro_2008Rel2_80512


it’s possible to replace " with " in the serialized string:



That worked wonders. Thank you.