fix: secure html module removes target attribute from links (#2012)

This commit is contained in:
Regev Brody 2020-06-08 02:23:33 +03:00 committed by GitHub
parent ca0708ea75
commit 037822b994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ module.exports = {
const window = new JSDOM('').window const window = new JSDOM('').window
const DOMPurify = createDOMPurify(window) const DOMPurify = createDOMPurify(window)
const allowedAttrs = ['v-pre', 'v-slot:tabs', 'v-slot:content'] const allowedAttrs = ['v-pre', 'v-slot:tabs', 'v-slot:content', 'target']
const allowedTags = ['tabset', 'template'] const allowedTags = ['tabset', 'template']
if (config.allowIFrames) { if (config.allowIFrames) {