UnEscape
(System Library)
| Description: | Decodes a string that was URL-encoded. |
| Returns: | Text |
Usage: ![]() |
Script Only. |
| Function Groups: | String and Buffer |
| Related to: | EncodeURIComponent |
Format: ![]() |
System.HTTPServerInst.UnEscape(Input) |
| Parameters: |
| Input |
| Required text. The string to be decoded. |
| Comments: |
This function will remove any HTML escape sequences, convert any '+'s to spaces and convert any %nn encodings to the raw character value, reversing the effects of EncodeURIComponent. |
Example:
IF Watch(1);
[
InStr = "Hello(there) And.<testing>";
OutStr = System.HTTPServerInst.EncodeURIComponent(InStr);
{ OutStr now contains "Hello(there)%20And.%3Ctesting%3E" }
Reversed = System.HTTPServerInst.UnEscape(OutStr);
{ Reversed now contains "Hello(there) And.<testing>" }
]
