Search Results for

    Show / Hide Table of Contents
    View Source

    Class HtmlEncodedStringExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class HtmlEncodedStringExtensions

    Methods

    View Source

    IsNullOrWhiteSpace(IHtmlEncodedString, Boolean)

    Checks if the specified IHtmlEncodedString is null or only contains whitespace, optionally after all HTML tags have been stripped/removed.

    Declaration
    public static bool IsNullOrWhiteSpace(this IHtmlEncodedString htmlEncodedString, bool stripHtml = false)
    Parameters
    Type Name Description
    IHtmlEncodedString htmlEncodedString

    The encoded HTML string.

    System.Boolean stripHtml

    If set to true strips/removes all HTML tags.

    Returns
    Type Description
    System.Boolean

    Returns true if the HTML string is null or only contains whitespace, optionally after all HTML tags have been stripped/removed.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • IsNullOrWhiteSpace(IHtmlEncodedString, Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX