Make string safe to be used as a identifier in a script block, by replacing any characters that would invalidate the script with script-safe characters.

Namespace:  EPiServer.ClientScript
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public static string ToScriptSafeIdentifier(
	string s
)

Parameters

s
Type: System..::.String
String that needs to be script-safe

Return Value

Script-safe identifier

See Also