Make it possible to pass options to cheerio.load
idmedia-kaiser opened this issue · 2 comments
idmedia-kaiser commented
Hi,
currently it is not possible to pass options to cheerio.load.
E.g. if you need { xmlMode: true }
See options
https://github.com/fb55/htmlparser2/wiki/Parser-options
Would it be possible to have something like
options : {
cheerioOptions: {
xmlMode: true
}
}
var $ = cheerio.load(html,options.cheerioOptions);
allenhwkim commented
@FDIM can you take a look into this?
FDIM commented
@idmedia-kaiser Done :)