Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dmitry on Sep 22, 2008 00:03
open dhtmlx forum
NEW LINE ("\n" or "<br>") in cell

Hello

Thank You very much for Your great support!
Can You help me load data from XML with "NEW LINE"-symbols in cells?
If I trying <br> - XML Error
If I trying \n - it showed as space

Best regards, Dmitry
Answer posted on Sep 22, 2008 02:59
Try escaping tags like &lt;br&gt;
Answer posted by Dmitry on Sep 22, 2008 03:19

Yep, I tried this and I see in the cell "<br>" but I like new line.

Example:

| col 1 | col  2                    |

| 1      | line 1<br> line 2    |    <- I have when use &lt;br&gt

| 2      | line 1                     |    <- I have when use <br> , but I can't create XML (<cell> line 1<br>line 2 </cell>) - Incorrect XML

|         | line 2                     |

Answer posted on Sep 23, 2008 01:03
<cell>text&lt;br/&gt;text on new line</cell>  outputs text on two lines for ed, ro etc. types.
It shows <br/> as text only for [xx]txt types - like edtxt,rotxt, txttxt