Supposed I have the following code:
<html:link onclick="jQuery('#add').data('name','${name}').dialog('open');" href="#">
And with this, if ${name} = a”b”c, problem occurs, link was not rendered well.
I have tried to escape the value, serialize but maybe my way is wrong.
Any suggestion how to do this? I have been searching, but i just cant find the answer.
Thanks all in advance.
You need to escape your quotes or take it out of the DOM (which I recommend) by putting a listener on it: