169
rated 0 times
[
175]
[
6]
/ answers: 1 / hits: 148988
/ 15 Years ago, wed, february 3, 2010, 12:00:00
Just a string. Add ' to it every time there is a single quote.
More From » jquery
Just a string. Add ' to it every time there is a single quote.
replace
works for the first quote, so you need a tiny regular expression:
str = str.replace(/'/g, \');