From 9f8e80f3f460c4145b5fb0017abdcbca72d15520 Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 16 Apr 2017 00:03:02 +0800 Subject: [PATCH] Add remove in XSS --- utility.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utility.js b/utility.js index ba72067..975d3ce 100644 --- a/utility.js +++ b/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) {