ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix image injection for custom markup
Chocobozzz0d25c5941466
diff --git a/shared/core-utils/renderer/html.ts b/shared/core-utils/renderer/html.tsindex bbf8b3fbd6..c9757be85e 100644--- a/shared/core-utils/renderer/html.ts+++ b/shared/core-utils/renderer/html.ts@@ -30,11 +30,13 @@ export function getCustomMarkupSanitizeOptions (additionalAllowedTags: string[]allowedTags: [...base.allowedTags,...additionalAllowedTags,- 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'+ 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img'],allowedSchemes: base.allowedSchemes,allowedAttributes: {...base.allowedAttributes,++ 'img': [ 'src', 'alt' ],'*': [ 'data-*', 'style' ]}}