16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
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;
|
|
}; |