mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
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;
|
|
}; |