Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DomUtils.DomSerializerOptions

interface DomSerializerOptions {
decodeEntities?: boolean;
emptyAttrs?: boolean;
selfClosingTags?: boolean;
xmlMode?: boolean | "foreign";
}

§Properties

§
decodeEntities?: boolean
[src]

Encode characters that are either reserved in HTML or XML, or are outside of the ASCII range.

§
emptyAttrs?: boolean
[src]

Print an empty attribute's value.

@example
With <code>emptyAttrs: false</code>: <code>&lt;input checked&gt;</code>
@example
With <code>emptyAttrs: true</code>: <code>&lt;input checked=""&gt;</code>
§
selfClosingTags?: boolean
[src]

Print self-closing tags for tags without contents.

@example
With <code>selfClosingTags: false</code>: <code>&lt;foo&gt;&lt;/foo&gt;</code>
@example
With <code>selfClosingTags: true</code>: <code>&lt;foo /&gt;</code>
§
xmlMode?: boolean | "foreign"
[src]

Treat the input as an XML document; enables the emptyAttrs and selfClosingTags options.

If the value is "foreign", it will try to correct mixed-case attribute names.