...
|
...
|
@@ -9,6 +9,8 @@ const util = { |
|
|
return html;
|
|
|
}
|
|
|
|
|
|
html = _.isString(html) ? html : '';
|
|
|
|
|
|
let $ = cheerio.load(html, {decodeEntities: false});
|
|
|
|
|
|
_.each($('p'), (item) => {
|
...
|
...
|
@@ -35,6 +37,8 @@ const util = { |
|
|
return html;
|
|
|
}
|
|
|
|
|
|
html = _.isString(html) ? html : '';
|
|
|
|
|
|
let $ = cheerio.load(html, {decodeEntities: false});
|
|
|
|
|
|
$('a').removeAttr('style').not('.a-anchor').attr('href', 'javascript:void(0);').css({cursor: 'text'});// eslint-disable-line
|
...
|
...
|
@@ -52,6 +56,8 @@ const util = { |
|
|
return html;
|
|
|
}
|
|
|
|
|
|
html = _.isString(html) ? html : '';
|
|
|
|
|
|
let $ = cheerio.load(html, {decodeEntities: false});
|
|
|
|
|
|
_.each($('img').slice(0, num), item => {
|
...
|
...
|
|