mirror of
https://github.com/nkanaev/yarr.git
synced 2025-07-08 16:00:11 +00:00
sanitizer forbid
This commit is contained in:
parent
0b620dc76b
commit
ab04ef4f0c
@ -37,7 +37,7 @@ var sanitize = function(content, base) {
|
||||
if (node.attributes.src && node.attributes.src.value)
|
||||
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', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user