add onclick

This commit is contained in:
Ravikumar911 2023-11-06 14:07:13 +05:30
parent 508721bd97
commit ac98e1ed9e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const xssFilter = new FilterXSS({
...getDefaultWhiteList(),
span: ['style', 'class', 'title'],
div: ['style', 'class'],
a: ['style', 'class', 'href', 'title', 'target'],
a: ['style', 'class', 'href', 'title', 'target', 'onclick'],
img: ['style', 'class', 'src', 'alt', 'title', 'width', 'height'],
video: [
'autoplay',