[This is preliminary documentation and is subject to change.]
Escapes JS literal, replacing / \ \r \n " ' < > & chars with their hex codes
Namespace: NFX.WebAssembly: NFX.Web (in NFX.Web.dll) Version: 3.0.0.1 (3.0.0.1)
public static string EscapeJSLiteral(
this string value
)
public static string EscapeJSLiteral(
this string value
)
<ExtensionAttribute>
Public Shared Function EscapeJSLiteral (
value As String
) As String
<ExtensionAttribute>
Public Shared Function EscapeJSLiteral (
value As String
) As String
public:
[ExtensionAttribute]
static String^ EscapeJSLiteral(
String^ value
)
public:
[ExtensionAttribute]
static String^ EscapeJSLiteral(
String^ value
)
static member EscapeJSLiteral :
value : string -> string
static member EscapeJSLiteral :
value : string -> string
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).