Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by francillo on Sep 24, 2009 02:48
open dhtmlx forum
Dhtmlx combo: Special HTML char

Hi,
When I have a special HTML char in an option of a combo, the output is erratic. It sounds like HTML espacping in the combo (for example: foo<bar renders foo .)

Regards.

Francillo.
Answer posted by Alex (support) on Sep 24, 2009 05:35

Hello,

try to replace < with &lt; 

<option value="some val"><![CDATA[foo&lt;bar]]></option>

Answer posted by francillo on Sep 25, 2009 02:04
Hi, But ...
If I escape myself the data when I populate the Combo, that means that I have to unescape it when I retrieve the value (not the id).... otherwise I will store in DB (When I store it for example) an escaped value. But, in a layer separated architecture, this is not good because the escaping is a matter of presentation, so depends on the componenet itself (here the combo). I think it's a missing function that would enable or disable HTML escaping inside the combo.

Regards

Francillo
Answer posted by Alex (support) on Sep 25, 2009 07:27

Hello,

method getComboText() returns unescaped text. Why do you need to unescape it ?