Skip to main content

extract-title

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

Functions

extractTitle()

function extractTitle(document): string

Extract and clean title from document

Parameters

ParameterTypeDescription

document

Document

DOM object with article content

Returns

string

Extracted and cleaned title