sanitizer forbid
This commit is contained in:
parent
0b620dc76b
commit
ab04ef4f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ var sanitize = function(content, base) {
|
||||||
if (node.attributes.src && node.attributes.src.value)
|
if (node.attributes.src && node.attributes.src.value)
|
||||||
node.src = new URL(node.attributes.src.value, base).toString()
|
node.src = new URL(node.attributes.src.value, base).toString()
|
||||||
})
|
})
|
||||||
return sanitizer.sanitize(content)
|
return sanitizer.sanitize(content, {FORBID_TAGS: ['style'], FORBID_ATTR: ['style', 'class']})
|
||||||
}
|
}
|
||||||
|
|
||||||
Vue.directive('scroll', {
|
Vue.directive('scroll', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue