Forum Moderators: open
The replace take a regexp to search for:
/'/g
That says "do a global search for the '
And the replace it with:
"\\'"
The \ character needs to be escaped by using \\ and then follow that with the ' so the actual string replacement will be \'