Jump to content

Who to escape special chars?


Betty_S

Recommended Posts

Hi folks!My JS function takes the (text) value of a drop-down list and dynamecliy create a link which looks something like that:…?name=%D7%97%D7%99%D7%A4%D7%95%D7%A9+%D7%91…It works fine.Whoever if the passed text contains apostrophe, commas or hyphen it doesn't work because it will 'copy' the string until it hits those spcial chars.What to do!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...