I'm facing a strange problem with escaping a single quote through an xml parser:
var strCallUrl = contextPath + "Controller?formfilter=registration&selectedUserType="+userType+"&emailID="+advisorEmail;
strCallUrl = strCallUrl.replace(/'/g, "\'");
alert(strCallUrl);
var objSeamlessRegLoad = new JKL.ParseXML.Text(strCallUrl,'','POST');
when I hit the last line, it doesn't go forward because of the singlequote inserted in email address(var advisorEmail), without single quote in that variable, it works absolutely fine. Is it possible to escape the single quote through JKL.ParseXML.Text()?
I have already tried "\'" and also tried escape(strCallUrl), none of these seem to work.