|   | WebExtensionsJavaScriptEncode Method | 
        
        
            Performs JavaScript encoding on given string.
            
        
        Namespace: GSF.WebAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.257-beta
 Syntax
Syntaxpublic static string JavaScriptEncode(
	this string text
)
<ExtensionAttribute>
Public Shared Function JavaScriptEncode ( 
	text As String
) As String
public:
[ExtensionAttribute]
static String^ JavaScriptEncode(
	String^ text
)
[<ExtensionAttribute>]
static member JavaScriptEncode : 
        text : string -> string GSF.Web.WebExtensions.JavaScriptEncode = function(text);
Parameters
- text  String
- The string to be encoded.
Return Value
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).
 See Also
See Also