View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/863 Closes #538 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
@@ -13,6 +13,7 @@ export default function sanitizeHtml(str: string | null): string | null {
|
|||||||
...original.defaults.allowedAttributes,
|
...original.defaults.allowedAttributes,
|
||||||
a: original.defaults.allowedAttributes.a.concat(['style']),
|
a: original.defaults.allowedAttributes.a.concat(['style']),
|
||||||
img: original.defaults.allowedAttributes.img.concat(['style']),
|
img: original.defaults.allowedAttributes.img.concat(['style']),
|
||||||
|
'*': (original.defaults.allowedAttributes['*'] || []).concat(['style']),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user