HTMLHelperResolveUrls 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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax public static string ResolveUrls(
string mHtml,
string applicationPath,
bool canResolveAllUrls = true
)
Parameters
- mHtml
- Type: SystemString
HTML code - applicationPath
- Type: SystemString
Application path - canResolveAllUrls (Optional)
- Type: SystemBoolean
Determines whether resolving of all URL can be used, true is used by default
Return Value
Type:
StringSee Also