Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 24, 2008 08:53
open dhtmlx forum
dhtmlxGrid: escaping problem with setHeader

I set column header user
grid.setHeader

I am having problem with tooltip escaping for "Test escaping a'b" string.

header_val = "<div title=\'Test escaping a\\\'b\'> Test escaping<\/div>"

I escape string using escape_javascript(header_val)
But tooltipe strips text from ' char
I see "Test escaping a" in tooltip instead of "Test escaping a'b"
Answer posted by Support on Nov 24, 2008 09:39
This test will be enjected as HTML string, which doesn't recognize such style of escaping. 
You can just change your code to the 
           header_val = "<div title=\"Test escaping a'b\"> Test escaping<\/div>"