[fix] sanitize src fix

This commit is contained in:
kwaroran
2023-06-06 07:21:52 +09:00
parent 35707ecc46
commit 9435675b26

View File

@@ -27,7 +27,7 @@ DOMPurify.addHook("uponSanitizeElement", (node: HTMLElement, data) => {
});
DOMPurify.addHook("uponSanitizeAttribute", (node, data) => {
if(data.attrName === 'src'){
if(data.attrName === 'style'){
data.attrValue = data.attrValue.replace(/(absolute)|(z-index)|(fixed)/g, '')
}
})