This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/cheerio/lib/options.js
2020-11-01 22:46:04 +00:00

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