HttpEncoder.JavaScriptStringEncode(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes a string.
protected public:
virtual System::String ^ JavaScriptStringEncode(System::String ^ value);
protected internal virtual string JavaScriptStringEncode (string value);
abstract member JavaScriptStringEncode : string -> string
override this.JavaScriptStringEncode : string -> string
Protected Friend Overridable Function JavaScriptStringEncode (value As String) As String
Parameters
- value
- String
The string to encode.
Returns
An encoded string.
Remarks
URL encoding makes sure that all browsers correctly transmit text in URL strings. Characters such as a question mark (?), ampersand (&), slash (/), and spaces might be truncated or corrupted by some browsers. Therefore, these characters must be encoded.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.