SanitizerConfig Class
https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dictdef-sanitizerconfig. A member that is null does not exist.
public sealed class SanitizerConfigConstructors
| Name | Description |
|---|---|
| SanitizerConfig() |
SanitizerConfig()
public SanitizerConfig()No documentation is available.
Properties
| Name | Description |
|---|---|
| Attributes | Gets the attributes to allow. |
| Comments | Gets a value indicating whether comments are allowed. |
| DataAttributes | Gets a value indicating whether custom data-* attributes are allowed. |
| Elements | Gets the elements to allow, with their allowed or removed attributes. |
| JavaScriptUrls | Gets a value indicating whether javascript: URLs are allowed. |
| ProcessingInstructions | Gets the processing instructions to allow. |
| RemoveAttributes | Gets the attributes to remove. |
| RemoveElements | Gets the elements to remove with their content. |
| RemoveProcessingInstructions | Gets the processing instructions to remove. |
| ReplaceWithChildrenElements | Gets the elements to replace with their children. |
Attributes
SanitizerTypes.csGets the attributes to allow.
public IReadOnlyList<SanitizerAttribute>? Attributes { get; init; }Comments
SanitizerTypes.csGets a value indicating whether comments are allowed.
public bool? Comments { get; init; }DataAttributes
SanitizerTypes.csGets a value indicating whether custom data-* attributes are allowed.
public bool? DataAttributes { get; init; }Elements
SanitizerTypes.csGets the elements to allow, with their allowed or removed attributes.
public IReadOnlyList<SanitizerElementWithAttributes>? Elements { get; init; }JavaScriptUrls
SanitizerTypes.csGets a value indicating whether javascript: URLs are allowed.
public bool? JavaScriptUrls { get; init; }ProcessingInstructions
SanitizerTypes.csGets the processing instructions to allow.
public IReadOnlyList<SanitizerPI>? ProcessingInstructions { get; init; }RemoveAttributes
SanitizerTypes.csGets the attributes to remove.
public IReadOnlyList<SanitizerAttribute>? RemoveAttributes { get; init; }RemoveElements
SanitizerTypes.csGets the elements to remove with their content.
public IReadOnlyList<SanitizerElement>? RemoveElements { get; init; }RemoveProcessingInstructions
SanitizerTypes.csGets the processing instructions to remove.
public IReadOnlyList<SanitizerPI>? RemoveProcessingInstructions { get; init; }ReplaceWithChildrenElements
SanitizerTypes.csGets the elements to replace with their children.
public IReadOnlyList<SanitizerElement>? ReplaceWithChildrenElements { get; init; }