Codxplore.com

Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

Remove apostrophe in string


Have a look at

http://www.webmasterworld.com/forum88/7382.htm

I believe that it will work OK if you escape the ' character thus: '
You can easily create a Javascript function to replace each instance of ' by '.

str = str.replace(/'/g, "\'");

Tags : javascript,

Views : 3719

Subscribe Us


Follow Us