Research Agent
Overview IntroExtract structured content and cite from any URL GETSearch the web GETGenerate language model reply using agent prompts POSTOverview Intro
Modules
Extract AuthorExtract CiteExtract SourceExtract TitleHuman Names RecognizeMetadata To CiteUrl To Domain
Research Agent
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

Extract Source

Previous Page

Human Names Recognize

Next Page

On this page

extractTitle()ParametersReturns