Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by angus lyon on Dec 11, 2007 02:54
open dhtmlx forum
dhtmlXgrid- html formatting in cell.

Hi,

Is there any way of using html tags in a cell to allow formating of the text? in particular I would like to insert <br> between text items in a particular column so that they appear as a list in the cell.

inserting the tag as is causes a "not valid XML error" on loading.

Answer posted by Support on Dec 11, 2007 04:25
You need to correctly escape HTML tags in XML

<cell><![CDATA[  some <br/> some  ]]></cell>

or


<cell>  some &lt;br/&gt; some </cell>

Please beware that br tag will work correctly in all browsers only if multiline mode enabled in grid
    grid.enableMultiline(true)