Merge pull request #1249 from uhoreg/imgfix1

allow width, height, alt, title attributes in img
pull/21833/head
Luke Barnard 2017-07-25 16:09:01 +01:00 committed by GitHub
commit 2138b4a705
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ const sanitizeHtmlParams = {
font: ['color', 'data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix 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 span: ['data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix
a: ['href', 'name', 'target', 'rel'], // remote target: custom to matrix a: ['href', 'name', 'target', 'rel'], // remote target: custom to matrix
img: ['src'], img: ['src', 'width', 'height', 'alt', 'title'],
ol: ['start'], ol: ['start'],
code: ['class'], // We don't actually allow all classes, we filter them in transformTags code: ['class'], // We don't actually allow all classes, we filter them in transformTags
}, },