I am invoking JavaScript from a
JSP. I am passing a
string value from a JSP variable to the JavaScript function. If this string contains a ' (single quote), then the JavaScript fails.
eg: When I call the function as follows => (the variable remarks contains a single quote in that string.)
onClick='openWin(<%= remarks %> )'
Pls. help. Is there any way out that I can get rid of this ???