|
|
@ -77,6 +77,7 @@ module.exports = { |
|
|
|
let $ = cheerio.load(s); |
|
|
|
let $ = cheerio.load(s); |
|
|
|
$('script').remove(); |
|
|
|
$('script').remove(); |
|
|
|
$('style').remove(); |
|
|
|
$('style').remove(); |
|
|
|
|
|
|
|
$('link').remove(); |
|
|
|
$('*').each((i, elem) => { |
|
|
|
$('*').each((i, elem) => { |
|
|
|
let a = Object.getOwnPropertyNames(elem.attribs); |
|
|
|
let a = Object.getOwnPropertyNames(elem.attribs); |
|
|
|
for (let key of a) { |
|
|
|
for (let key of a) { |
|
|
|