+1
Z odpowiedzią
escaping single quotes
Michael Mikkelsen 12 lat temu
•
Ostatnio zmodyfikowane przez icahill (Administrator) 12 lat temu •
2
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
"