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.1.5347.20411)
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