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

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public static string GetString(
	string text,
	bool encapsulate,
	bool encodeNewLine
)

Parameters

text
Type: SystemString
Text to be encoded
encapsulate
Type: SystemBoolean
If true, text is encapsulated it with "'"
encodeNewLine
Type: SystemBoolean
If true, new line characters will be encoded

Return Value

Type: String
See Also