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(IPublishedUrlProvider)
Declaration
public HtmlLocalLinkParser(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
FindLegacyLocalLinkIds(String)
Declaration
public IEnumerable<HtmlLocalLinkParser.LocalLinkTag> FindLegacyLocalLinkIds(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
View Source
FindUdisFromLocalLinks(String)
Declaration
public IEnumerable<Udi> FindUdisFromLocalLinks(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
IEnumerable<Udi> |
|