From 22932241bdbcba28405d33ea853dcb368f80a892 Mon Sep 17 00:00:00 2001 From: Colby Newman Date: Sat, 6 May 2023 07:24:53 -0700 Subject: [PATCH] Support HTML image maps (#1118) --- helpers/parse.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers/parse.js b/helpers/parse.js index e8bfa8e40..288fb8e8f 100644 --- a/helpers/parse.js +++ b/helpers/parse.js @@ -14,7 +14,9 @@ export const configuredXss = new xss.FilterXSS({ kbd: ['id'], input: ['checked', 'disabled', 'type'], iframe: ['width', 'height', 'allowfullscreen', 'frameborder', 'start', 'end'], - img: [...xss.whiteList.img, 'style'], + img: [...xss.whiteList.img, 'style', 'usemap'], + map: ['name'], + area: [...xss.whiteList.a, 'coords'], a: [...xss.whiteList.a, 'rel'], }, css: {