Support HTML image maps (#1118)

This commit is contained in:
Colby Newman 2023-05-06 07:24:53 -07:00 committed by GitHub
parent afc95d99cb
commit 22932241bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {