this function will escape reserved character fields to their "safe" javascript equivalents

Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string GetSafeJSString(
	string key,
	string resourceFileRoot
)
Visual Basic
Public Shared Function GetSafeJSString ( 
	key As String,
	resourceFileRoot As String
) As String

Parameters

key
Type: System..::..String
localization key
resourceFileRoot
Type: System..::..String
file for localization key

Return Value

the string that is safe to use in a javascript function

See Also