1 | var assign = require('lodash/assign');
|
2 |
|
3 | /*
|
4 | * Cheerio default options
|
5 | */
|
6 |
|
7 | exports.default = {
|
8 | withDomLvl1: true,
|
9 | normalizeWhitespace: false,
|
10 | xml: false,
|
11 | decodeEntities: true
|
12 | };
|
13 |
|
14 | exports.flatten = function(options) {
|
15 | return options && options.xml ? assign({xmlMode: true}, options.xml) : options;
|
16 | }; |
\ | No newline at end of file |