Encodes text to be used in JavaScript string and optionally encapsulates it with "'".
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- text
- Type: System String
Text to be encoded
- encapsulate
- Type: System Boolean
If true, text is encapsulated it with "'"
- encodeNewLine
- Type: System Boolean
If true, new line characters will be encoded
Return Value
Type: StringSee Also