Merge pull request #1249 from uhoreg/imgfix1

allow width, height, alt, title attributes in img
This commit is contained in:
Luke Barnard 2017-07-25 16:09:01 +01:00 committed by GitHub
commit 2138b4a705

View file

@ -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
},