Search Results for

    Show / Hide Table of Contents
    View Source

    Class HtmlLocalLinkParser

    Utility class used to parse internal links

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Templates
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class HtmlLocalLinkParser

    Constructors

    View Source

    HtmlLocalLinkParser(IUmbracoContextAccessor, IPublishedUrlProvider)

    Declaration
    public HtmlLocalLinkParser(IUmbracoContextAccessor umbracoContextAccessor, IPublishedUrlProvider publishedUrlProvider)
    Parameters
    Type Name Description
    IUmbracoContextAccessor umbracoContextAccessor
    IPublishedUrlProvider publishedUrlProvider

    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>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • HtmlLocalLinkParser(IUmbracoContextAccessor, IPublishedUrlProvider)
    • Methods
      • EnsureInternalLinks(String)
      • EnsureInternalLinks(String, Boolean)
      • FindUdisFromLocalLinks(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX