From 1073786960a547349924b2d225b578b12a9e9196 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 10 Dec 2023 10:58:19 +0100 Subject: [PATCH] fix(HtmlSerializer): Use Cheerio.text() for getting title Signed-off-by: Marcel Klehr --- src/lib/serializers/Html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/serializers/Html.ts b/src/lib/serializers/Html.ts index d0f8ffcda7..a6e6697eba 100644 --- a/src/lib/serializers/Html.ts +++ b/src/lib/serializers/Html.ts @@ -83,7 +83,7 @@ export const parseByString = (content: string) => { const parseNode = (node: cheerio.Cheerio, parentId?: string|number) => { const eq0 = node.children().eq(0) - const title = eq0.html() || '' + const title = eq0.text() || '' let url = '' const id = eq0.attr('id') || '' let children: TItem[] = []