[RESOLVED] Javascript: Escape Apostrophe
Hi,
I would think that this has been asked a thousand times, but I couldn't find a simple way to do this. If my javascript string has an apostrophe (or multiple apostrophes), how do I escape it (them)? I'm doing a SQL lookup based on the string and names like O'Reilly cause my app to choke!
Thanks,
OneSource
Re: Javascript: Escape Apostrophe
Re: Javascript: Escape Apostrophe
Maybe you could split the string and then rebuild it with escaped apostrophes? I havn't done much JS in awhile but when I do and I run into a problem I turn to javascript.internet.com looking for source code...