View Source
Class HtmlLocalLinkParser
Utility class used to parse internal links
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public sealed class HtmlLocalLinkParser
Constructors
View Source
HtmlLocalLinkParser(IUmbracoContextAccessor)
Declaration
public HtmlLocalLinkParser(IUmbracoContextAccessor umbracoContextAccessor)
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 |
|