SP.Utilities.HttpUtility.urlKeyValueEncode(keyOrValueToEncode) Method
Applies to: SharePoint Foundation 2010
Encodes a string for use in a URL query string.
var value = SP.Utilities.HttpUtility.urlKeyValueEncode(keyOrValueToEncode);
Parameters
- keyOrValueToEncode
The key or value string to be encoded.
Type: string
Return Value
Type: string
Applies To
SP.Utilities.HttpUtility Class