Single quotes and treeview

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

I have this website (www.polytools.be).
On this website i use a treeview.
Now when the text that is displayed on the treeview contains single quotes
(') I get a javascript error.

Does anyone know a cure for this?
I would like to use the single quotes.

Thanks in advance.
 
I don't develop much js; but I do know that the string identifier is
'string'. Your single quotes are conflicting; breaking your js. Likely you
need to escape it; which is probably either done by doubling it;

e.g. McDonald''s

or escaping it;

e.g. JC Penny\'s

Good luck.
 
Back
Top