Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Escaping string in Javascript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 119
    Comment on it

    The escape function returns a hexadecimal encoding of an argument in the ISO Latin-1 character set that contains the contents of charstring. The Syntax is:

    escape("string")
    

    String is a string in the ISO Latin-1 character set.

    The value returned by the escape function is one of the following:

    For alphanumeric characters, the same character (i.e. the function has no effect).
    For the space it returned as "%20."
    For non-alphanumeric characters other than space, a string of the form "%xx," where xx is the hexadecimal encoding of the ASCII character in the ISO Latin-1 character set.
    

    For example,

    escape("abc&%")

    the following code will returns "abc%26%25".

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: