Table of Contents

Class SanitizerConfig

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SanitizerConfig dictionary of the HTML Sanitizer API specifies what elements, attributes and comments are allowed or should be removed when inserting strings of HTML into an Element or ShadowRoot, or when parsing an HTML string into a Document.

[ToObject]
public class SanitizerConfig
Inheritance
SanitizerConfig
Inherited Members

Remarks

Note that normally Sanitizer instances are used instead of SanitizerConfig objects, as they are more efficient to share and modify.

See also on MDN

Constructors

SanitizerConfig()

public SanitizerConfig()

Fields

Attributes

[Value("attributes")]
public List<Union131> Attributes

Field Value

List<Union131>

Comments

[Value("comments")]
public bool Comments

Field Value

bool

DataAttributes

[Value("dataAttributes")]
public bool DataAttributes

Field Value

bool

Elements

[Value("elements")]
public List<Union130> Elements

Field Value

List<Union130>

RemoveAttributes

[Value("removeAttributes")]
public List<Union131> RemoveAttributes

Field Value

List<Union131>

RemoveElements

[Value("removeElements")]
public List<Union129> RemoveElements

Field Value

List<Union129>

ReplaceWithChildrenElements

[Value("replaceWithChildrenElements")]
public List<Union129> ReplaceWithChildrenElements

Field Value

List<Union129>