[This is preliminary documentation and is subject to change.]

Escapes the javascript comment character with the a backslash character before the comment character

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static string EscapeJavascriptComment(
	string name,
	int type
)
Visual Basic (Declaration)
Public Shared Function EscapeJavascriptComment ( _
	name As String, _
	type As Integer _
) As String
Visual C++
public:
static String^ EscapeJavascriptComment(
	String^ name, 
	int type
)

Parameters

name
Type: System..::.String
The input string to be escaped
type
Type: System..::.Int32
0 if we want to escape ' character, 1 if we want to escape " character and 2 if we want to escape both characters

Return Value

The escaped string

See Also