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 -

javascript - Preserving URL fragment through CAS sign-on -

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