I need to send data by POST method.
For example, I have the string \"bla&bla&bla\". I tried using encodeURI and got \"bla&bla&bla\" as t
encodeURI
Use encodeURIComponent() as encodeURI() will not encode: ~!@#$&*()=:/,;?+'
~!@#$&*()=:/,;?+'
This has been explained quite well at the following link:
http://xkr.us/articles/javascript/encode-compare/