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

DomHandlerOptions

interface DomHandlerOptions {
normalizeWhitespace?: boolean;
withEndIndices?: boolean;
withStartIndices?: boolean;
xmlMode?: boolean;
}

§Properties

§
normalizeWhitespace?: boolean
[src]

Replace all whitespace with single spaces.

Note: Enabling this might break your markup.

§
withEndIndices?: boolean
[src]

Add an endIndex property to nodes. When the parser is used in a non-streaming fashion, endIndex is an integer indicating the position of the end of the node in the document.

§
withStartIndices?: boolean
[src]

Add a startIndex property to nodes. When the parser is used in a non-streaming fashion, startIndex is an integer indicating the position of the start of the node in the document.

§
xmlMode?: boolean
[src]

Treat the markup as XML.