Difference between revisions of "LlEscapeURL"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(touchups) |
|||
Line 6: | Line 6: | ||
|return_text=that is the escaped/encoded version of '''url''', replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte. | |return_text=that is the escaped/encoded version of '''url''', replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte. | ||
|spec | |spec | ||
|caveats=* The function is not appropriate for escaping | |caveats=* The function is not appropriate for escaping a URL all at once because the ': ' after the protocol and all of the '/' characters delimiting the various parts will be escaped. Instead, build the URL in parts, escaping parts of the path and query string arguments as needed. | ||
*See: {{LSLG|string#Caveats|String:Caveats}} | *See: {{LSLG|string#Caveats|String:Caveats}} | ||
|constants | |constants |
Revision as of 14:52, 1 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llEscapeURL( string url );307 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a string that is the escaped/encoded version of url, replacing spaces with %20 etc. The function will escape any character not in [a-zA-Z0-9] to %xx where xx is the hexadecimal value of the byte.
• string | url |
Caveats
- The function is not appropriate for escaping a URL all at once because the ': ' after the protocol and all of the '/' characters delimiting the various parts will be escaped. Instead, build the URL in parts, escaping parts of the path and query string arguments as needed.
- See: String:Caveats