remove style limits

This commit is contained in:
kwaroran
2025-04-14 16:14:50 +09:00
parent ce24497bad
commit 46c45238e5

View File

@@ -60,7 +60,6 @@ DOMPurify.addHook("uponSanitizeElement", (node: HTMLElement, data) => {
DOMPurify.addHook("uponSanitizeAttribute", (node, data) => { DOMPurify.addHook("uponSanitizeAttribute", (node, data) => {
switch(data.attrName){ switch(data.attrName){
case 'style':{ case 'style':{
data.attrValue = data.attrValue.replace(/(absolute)|(z-index)|(fixed)/g, '')
break break
} }
case 'class':{ case 'class':{