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 SourceNoopHtmlSanitizer()
Declaration
public NoopHtmlSanitizer()
Methods
View SourceSanitize(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 |