Make a string safe to be embedded into a script block, by replacing any characters that would invalidate the script with script-safe characters.

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

Syntax

C#
public static string ToScriptSafeString(
	string s
)

Parameters

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

Return Value

Script-safe text

See Also