File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
7878export 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 = ''
You can’t perform that action at this time.
0 commit comments