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 unsafeString
)
Visual Basic
Public Shared Function GetSafeJSString ( 
	unsafeString As String
) As String

Parameters

unsafeString
Type: System..::..String
The string to be parsed for unsafe characters

Return Value

the string that is safe to use in a javascript function

See Also