mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
allow width, height, alt, title attributes in img
fixes vector-im/riot-web#4646 Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
This commit is contained in:
parent
eb0575d9c1
commit
df71502dbb
@ -145,7 +145,7 @@ const sanitizeHtmlParams = {
|
||||
font: ['color', 'data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix
|
||||
span: ['data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix
|
||||
a: ['href', 'name', 'target', 'rel'], // remote target: custom to matrix
|
||||
img: ['src'],
|
||||
img: ['src', 'width', 'height', 'alt', 'title'],
|
||||
ol: ['start'],
|
||||
code: ['class'], // We don't actually allow all classes, we filter them in transformTags
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user