blob: 919d8027df10d6958e49a0dfa4ffa08809aac866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var assign = require('lodash/assign');
/*
* Cheerio default options
*/
exports.default = {
withDomLvl1: true,
normalizeWhitespace: false,
xml: false,
decodeEntities: true
};
exports.flatten = function(options) {
return options && options.xml ? assign({xmlMode: true}, options.xml) : options;
};
|