I want to escape single and double quotes and some other characters in JavaScript
String to escape is `dynamic initializer for 'Graphics::CDeviceCMYK::s_WicFactoryBoundData''
I want to pass this as argument to some function.
I tried encodeURI(string);
Its not working. What's the correct way to do this ??