peregrine-cms-test-html
Version:
Test your peregrine site to see what is supported.
16 lines (13 loc) • 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;
};