sdfdsf
This commit is contained in:
@@ -50,10 +50,10 @@
|
|||||||
Array.from(el.attributes).forEach((attr) => {
|
Array.from(el.attributes).forEach((attr) => {
|
||||||
const name = attr.name.toLowerCase();
|
const name = attr.name.toLowerCase();
|
||||||
if (tag === 'a') {
|
if (tag === 'a') {
|
||||||
if (!['href', 'target', 'rel', 'style'].includes(name)) {
|
if (!['href', 'target', 'rel', 'style', 'class'].includes(name)) {
|
||||||
el.removeAttribute(attr.name);
|
el.removeAttribute(attr.name);
|
||||||
}
|
}
|
||||||
} else if (name !== 'style') {
|
} else if (!['style', 'class'].includes(name)) {
|
||||||
el.removeAttribute(attr.name);
|
el.removeAttribute(attr.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user