We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8106ac2 commit 0dc010fCopy full SHA for 0dc010f
lib/cheerio.js
@@ -7,7 +7,8 @@ var cheerio = require('cheerio');
7
var utils = require('./utils');
8
9
var cheerioLoad = function(html, options, encodeEntities) {
10
- options = Object.assign({xml: {decodeEntities: false}}, options);
+ const { xmlMode, ...rest } = options;
11
+ options = Object.assign({ xml: { decodeEntities: false, xmlMode } }, rest);
12
html = encodeEntities(html);
13
return cheerio.load(html, options);
14
};
0 commit comments