mirror of https://github.com/Chocobozzz/PeerTube
Fix image injection for custom markup
parent
2370d9cc4a
commit
0d25c59414
|
@ -30,11 +30,13 @@ export function getCustomMarkupSanitizeOptions (additionalAllowedTags: string[]
|
||||||
allowedTags: [
|
allowedTags: [
|
||||||
...base.allowedTags,
|
...base.allowedTags,
|
||||||
...additionalAllowedTags,
|
...additionalAllowedTags,
|
||||||
'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
|
'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img'
|
||||||
],
|
],
|
||||||
allowedSchemes: base.allowedSchemes,
|
allowedSchemes: base.allowedSchemes,
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
...base.allowedAttributes,
|
...base.allowedAttributes,
|
||||||
|
|
||||||
|
'img': [ 'src', 'alt' ],
|
||||||
'*': [ 'data-*', 'style' ]
|
'*': [ 'data-*', 'style' ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue