projecte_ionic/node_modules/cheerio/lib/options.js
2022-02-09 18:30:03 +01:00

16 lines
309 B
JavaScript
Executable file

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