Click or drag to resize
ScriptHelperGetString Method (String, Boolean)
Encodes text to be used in JavaScript string and optionally encapsulates it with "'".

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetString(
	string text,
	bool encapsulate
)

Parameters

text
Type: SystemString
Text to be encoded
encapsulate
Type: SystemBoolean
If true, text is encapsulated it with "'"

Return Value

Type: String
See Also