
+1
Answered
escaping single quotes
How do I escape the single quotes out of a text string so that I can put it into a SQL Database?
Customer support service by UserEcho
function dbText(str)
{
str = str.replaceAll("'", "'");
return str;
}
For double quotes you would have to use
"