FunctionsExtractorHtml to cite

Extract Title

ai-research-agent / extractor/html-to-cite/extract-title

extractTitle()

function extractTitle(document: Document): string;

Defined in: src/extractor/html-to-cite/extract-title.js:7

Extract and clean title from document

Parameters

ParameterTypeDescription

document

Document

DOM object with article content

Returns

string

Extracted and cleaned title

On this page