From a070bec03c1244b80449f31e4a015f87cee829a7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 May 2022 14:32:24 +1000 Subject: [PATCH] Allow alt tags when pasting images https://forums.ankiweb.net/t/do-not-strip-alt-attribute-when-pasting-images-from-the-web/20007 --- ts/html-filter/element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/html-filter/element.ts b/ts/html-filter/element.ts index fbdde5e7a..cd9cff72c 100644 --- a/ts/html-filter/element.ts +++ b/ts/html-filter/element.ts @@ -54,7 +54,7 @@ function filterSpan(element: Element): void { const tagsAllowedBasic: TagsAllowed = { BR: allowNone, - IMG: allow(["SRC"]), + IMG: allow(["SRC", "ALT"]), DIV: allowNone, P: allowNone, SUB: allowNone,