Click or drag to resize
ScriptHelperEscapeHTMLString Method

Note: This API is now obsolete.

Escapes the given HTML string for usage in the JavaScript string constant.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use ScriptHelper.GetString instead.")]
public static string EscapeHTMLString(
	string text
)

Parameters

text
Type: SystemString
Text to escape

Return Value

Type: String
See Also