From 113720caf6a7346ed781cbc3aacee23ca6416720 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 17 Jul 2023 16:14:59 +0800 Subject: [PATCH] wrap document fragment in the and in order to parse the HTML correctly --- packages/api/src/utils/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/utils/parser.ts b/packages/api/src/utils/parser.ts index e48ca7326..4347e9448 100644 --- a/packages/api/src/utils/parser.ts +++ b/packages/api/src/utils/parser.ts @@ -248,7 +248,7 @@ export const parsePreparedContent = async ( if (!article?.textContent && allowRetry) { const newDocument = { ...preparedDocument, - document: '' + document + '', + document: '' + document + '', // wrap in body } return parsePreparedContent( url,