Click or drag to resize
HTMLHelper.ResolveUrls Method
Resolves relative URLs in given HTML(string). If CMSResolveAllUrls application settings is true it resolves all URLs. Otherwise it resolves URLs used in "src", "href", "background" and "url" attributes.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static string ResolveUrls(
	string mHtml,
	string applicationPath,
	bool canResolveAllUrls = true
)

Parameters

mHtml
Type: System.String
HTML code
applicationPath
Type: System.String
Application path
canResolveAllUrls (Optional)
Type: System.Boolean
Determines whether resolving of all URL can be used, true is used by default

Return Value

Type: String
See Also