0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 08:57:38 +00:00

Merge branch 'master' into labels

This commit is contained in:
Víctor Losada Hernández
2026-08-04 16:04:07 +02:00
committed by GitHub
5 changed files with 26 additions and 20 deletions
+4 -4
View File
@@ -32,12 +32,12 @@ function safeHTML(htmlString) {
return;
}
// Check remaining elements for blacklisted attributes
for (const attribute of element.attributes){
[...element.attributes].forEach((attribute)=>{
if(blacklistAttrs.some((test)=>{return test(attribute);})) {
element.removeAttribute(attribute.localName);
break;
element.removeAttribute(attribute.name);
return;
};
};
});
});
return div.innerHTML;