Click or drag to resize
URLHelperGetSafeUrlPart Method
Returns the safe part of URL. This method doesn't proceed complete URL it handles only part of URL.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetSafeUrlPart(
	string url,
	string siteName
)

Parameters

url
Type: SystemString
String with URL part which may contain URL-unsafe characters. Enter only part of URL without any '/' characters
siteName
Type: SystemString
Site name from where forbidden characters should be taken

Return Value

Type: String
See Also