From e050e380b9e44d2e282074d3ca7ca19b33761be4 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 20 Aug 2021 21:40:28 +0200 Subject: [PATCH] fix importing image captions, closes #2113 --- src/services/html_sanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/html_sanitizer.js b/src/services/html_sanitizer.js index 362ad5b62c..2f434e6455 100644 --- a/src/services/html_sanitizer.js +++ b/src/services/html_sanitizer.js @@ -8,7 +8,7 @@ function sanitize(dirtyHtml) { 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'li', 'b', 'i', 'strong', 'em', 'strike', 'abbr', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img', - 'figure', 'span', 'label', 'input' + 'figure', 'figcaption', 'span', 'label', 'input' ], allowedAttributes: { 'a': [ 'href', 'class', 'data-note-path' ],