Skip to content

Commit 05a5fc9

Browse files
committed
fix: typescript errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 1368902 commit 05a5fc9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib/serializers/Html.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default new HtmlSerializer()
4545
// Copyright (c) 2019 hold-baby
4646
// MIT License
4747

48-
export const getRootFolder = (body: cheerio.Cheerio<cheerio.Element>) => {
48+
export const getRootFolder = (body: cheerio.Cheerio<any>) => {
4949
const h3 = body.find('h3').first()
5050

5151
const isChrome = typeof h3.attr('personal_toolbar_folder') === 'string'
@@ -76,15 +76,13 @@ export const getRootFolder = (body: cheerio.Cheerio<cheerio.Element>) => {
7676
}
7777

7878
export const parseByString = (content: string) => {
79-
const $ = cheerio.load(content, {
80-
decodeEntities: true
81-
})
79+
const $ = cheerio.load(content)
8280

8381
const body = $('body')
8482
const root: TItem<typeof ItemLocation.SERVER>[] = []
8583
const rdt = getRootFolder(body).children('dt')
8684

87-
const parseNode = (node: cheerio.Cheerio<cheerio.Element>, parentId?: string|number) => {
85+
const parseNode = (node: cheerio.Cheerio<any>, parentId?: string|number) => {
8886
const eq0 = node.children().eq(0)
8987
const title = typeof eq0.text() !== 'undefined' ? eq0.text() : ''
9088
let url = ''

0 commit comments

Comments
 (0)