Browse Source

Add remove <link> in XSS

pull/6/head
Menci 8 years ago
parent
commit
9f8e80f3f4
  1. 1
      utility.js

1
utility.js

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

Loading…
Cancel
Save