handle single quote with javascript
Hi,
I want to add a hyperlink in every company name that it will show its name in a pop-up dialog. Therefore, I try to do it as the following:
<a href="##" onclick="javascript:select('#replace(getList.company_name#')">#getList.company_name#</a>
However, since some company names have single quote " ' ", it encounters error when handling these company name. Therefore, I try to change the program as the following:
<a href="##" onclick="javascript:select('#replace(getList.company_name,''','\'','ALL')#')">#getList.company_name#</a>
But, it does not work and shows me error "The value ', cannot be converted to a number."
Can anyone help me to solve this problem?
