ScriptHelperGetString Method |
Encodes text to be used in JavaScript string and optionally encapsulates it with "'".
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax public static string GetString(
string text,
bool encapsulate = true,
bool encodeNewLine = true
)
Parameters
- text
- Type: SystemString
Text to be encoded - encapsulate (Optional)
- Type: SystemBoolean
If true, text is encapsulated it with "'" - encodeNewLine (Optional)
- Type: SystemBoolean
If true, new line characters will be encoded
Return Value
Type:
StringSee Also