Skip to content

Commit

Permalink
fix(HtmlSerializer): Use Cheerio.text() for getting title
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Dec 10, 2023
1 parent fd3a351 commit 1073786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/serializers/Html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const parseByString = (content: string) => {

const parseNode = (node: cheerio.Cheerio<cheerio.Element>, 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[] = []
Expand Down

0 comments on commit 1073786

Please sign in to comment.