Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris Martin on Jan 29, 2008 17:58
open dhtmlx forum
dhtmlXGrid serialization of special characters

We need to allow users to enter characters such as "<", ">" and "&" into an edtxt cell, but when the grid is serialized these characters are not escaped and the resultsing XML is invalid. Is there an easy way to have the grid replace these with the appropriate entities?
Answer posted by Support on Jan 30, 2008 03:41
You can configure serialization options by setSerializationLevel command, it allows to enable CDATA sections for cell values ( such sections can contain any chars, including & < >)
    grid.setSerializationLevel(false,false,false,false,false,true);