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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -