I have a textarea in a form that i wish to be a completely free test field for the user to add ANY text including url's etc.
the contents of this text area is then going to be passed to a C# webmethod as ajax/json, to be then added to a sql database.
This works great until the users add an apostrophe and/or some other accented chars and i think slashes etc. I know apostrophes are a problems con-tray to most peoples comments on other similar questions as if i remove it the json works.
I have tried simply replace() on the slashes and it works (but im bothered about other chars like \ that also prevent the json working).
What i could do with is a way of filtering (eascaping) anything out that will break the json (' or \ etc) and also deal with a url if its added and also the c# to revert it back from the db on the boud event of the griview