]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/core-utils/renderer/html.ts
Fix lint
[github/Chocobozzz/PeerTube.git] / shared / core-utils / renderer / html.ts
index bbf8b3fbd6531cc8222f6dcea821e66c57b76443..c9757be85e393a9edd870228a4993c4e7b42ce9b 100644 (file)
@@ -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' ]
     }
   }