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" or "href" or "background" attributes.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.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