Skip to main content

Class: HTMLNodeParser()

Extends

HTMLNodeParser<Options>(nodes, options?): BaseNode<Metadata>[]

Type Parameters

Options extends Record<string, unknown>

Parameters

nodes: BaseNode<Metadata>[]

options?: Options

Returns

BaseNode<Metadata>[]

Defined in

packages/node-parser/html/dist/index.d.ts:8

Constructors

new HTMLNodeParser()

new HTMLNodeParser(params?): HTMLNodeParser

Parameters

params?: HTMLNodeParserParam

Returns

HTMLNodeParser

Overrides

NodeParser.constructor

Defined in

packages/node-parser/html/dist/index.d.ts:10

Properties

htmlToTextOptions

readonly htmlToTextOptions: undefined | HtmlToTextOptions

Defined in

packages/node-parser/html/dist/index.d.ts:9


id

id: string

Inherited from

NodeParser.id

Defined in

packages/core/schema/dist/index.d.ts:172


includeMetadata

includeMetadata: boolean

Inherited from

NodeParser.includeMetadata

Defined in

packages/core/node-parser/dist/index.d.ts:6


includePrevNextRel

includePrevNextRel: boolean

Inherited from

NodeParser.includePrevNextRel

Defined in

packages/core/node-parser/dist/index.d.ts:7

Methods

getNodesFromDocuments()

getNodesFromDocuments(documents): TextNode<Metadata>[]

Parameters

documents: TextNode<Metadata>[]

Returns

TextNode<Metadata>[]

Inherited from

NodeParser.getNodesFromDocuments

Defined in

packages/core/node-parser/dist/index.d.ts:11


parseNodes()

protected parseNodes(documents): TextNode<Metadata>[]

Parameters

documents: TextNode<Metadata>[]

Returns

TextNode<Metadata>[]

Overrides

NodeParser.parseNodes

Defined in

packages/node-parser/html/dist/index.d.ts:11


postProcessParsedNodes()

protected postProcessParsedNodes(nodes, parentDocMap): TextNode<Metadata>[]

Parameters

nodes: TextNode<Metadata>[]

parentDocMap: Map<string, TextNode<Metadata>>

Returns

TextNode<Metadata>[]

Inherited from

NodeParser.postProcessParsedNodes

Defined in

packages/core/node-parser/dist/index.d.ts:9