Search Results for

    Show / Hide Table of Contents
    View Source

    Class NoopHtmlSanitizer

    A no-operation implementation of IHtmlSanitizer that returns HTML unchanged.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Core.dll
    Syntax
    public class NoopHtmlSanitizer : IHtmlSanitizer
    Remarks

    This implementation does not perform any sanitization and should only be used when HTML sanitization is not required or is handled elsewhere.

    Constructors

    View Source

    NoopHtmlSanitizer()

    Declaration
    public NoopHtmlSanitizer()

    Methods

    View Source

    Sanitize(string)

    Sanitizes HTML

    Declaration
    public string Sanitize(string html)
    Parameters
    Type Name Description
    string html

    HTML to be sanitized

    Returns
    Type Description
    string

    Sanitized HTML

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX