allenhwkim/angular-template

Make it possible to pass options to cheerio.load

idmedia-kaiser opened this issue · 2 comments

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);

@FDIM can you take a look into this?