View Source
Class HtmlLocalLinkParser
Utility class used to parse internal links
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public sealed class HtmlLocalLinkParser
Constructors
View Source
HtmlLocalLinkParser(IUmbracoContextAccessor, IPublishedUrlProvider)
Declaration
public HtmlLocalLinkParser(IUmbracoContextAccessor umbracoContextAccessor, IPublishedUrlProvider publishedUrlProvider)
Parameters
Methods
View Source
EnsureInternalLinks(String)
Parses the string looking for the {localLink} syntax and updates them to their correct links.
Declaration
public string EnsureInternalLinks(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
View Source
EnsureInternalLinks(String, Boolean)
Parses the string looking for the {localLink} syntax and updates them to their correct links.
Declaration
public string EnsureInternalLinks(string text, bool preview)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Boolean |
preview |
|
Returns
Type |
Description |
System.String |
|
View Source
FindUdisFromLocalLinks(String)
Declaration
public IEnumerable<Udi> FindUdisFromLocalLinks(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
IEnumerable<Udi> |
|