Javascript encodeURIComponent doesn't encode single quotes -


try out:

encodeuricomponent("'@#$%^&"); 

if try out see special characters encoded except single quote. function can use encode characters , use php decode them?

thanks.

i'm not sure why want them encoded. if want escape single quotes, use .replace(/'/g, "%27"). however, references are:


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -