mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 03:35:56 +08:00
Merge pull request #996 from mendableai/fix/title-extra-info
[BUG] fixed title extra info
This commit is contained in:
commit
ed24853ca6
@ -40,7 +40,7 @@ export function extractMetadata(
|
||||
const soup = load(html);
|
||||
|
||||
try {
|
||||
title = soup("title").text() || undefined;
|
||||
title = soup("title").first().text().trim() || undefined;
|
||||
description = soup('meta[name="description"]').attr("content") || undefined;
|
||||
|
||||
// Assuming the language is part of the URL as per the regex pattern
|
||||
|
Loading…
x
Reference in New Issue
Block a user