I have try to replace a symbol in JavaScript, but somehow this is always only replace the 1st symbol of the string instead of replaced all the symbol.
JavaScript:
var note = "test'test'test'";
note = note .replace("'", "'");
Output:
test'test'test'
Does anyone know how can I can replace all ' symbols with ' ??
Use regex substitution and add a
gflag to make it global: