Class HttpUtility

Index

Methods

Methods

public static appendSourceAndNavigateTo(url: string)

Appends correct "Source" parameter to the specified url, and then navigates to this url. "Source" parameter is recognized in many places in SharePoint, usually to determine "Cancel" behavior.

Parameters

  • url: string

public static ecmaScriptStringLiteralEncode(scriptLiteralToEncode: string): string

Parameters

  • scriptLiteralToEncode: string

Returns

string

public static escapeXmlText(stringToEscape: string): string

Parameters

  • stringToEscape: string

Returns

string

public static htmlEncode(stringToEncode: string): string

Official version of STSHtmlEncode. Calls it internally.

Parameters

  • stringToEncode: string

Returns

string

public static navigateHttpFolder(urlSrc: string, frameTarget: string)

Parameters

  • urlSrc: string
  • frameTarget: string

public static navigateTo(url: string)

Parameters

  • url: string

public static urlKeyValueEncode(keyOrValueToEncode: string): string

Parameters

  • keyOrValueToEncode: string

Returns

string

public static urlPathEncode(stringToEncode: string): string

Parameters

  • stringToEncode: string

Returns

string