Skip to content

Commit

Permalink
fix(xss): 🐛 resolve parsing issue for colgroup and col elements
Browse files Browse the repository at this point in the history
  • Loading branch information
yikoyu committed Jan 5, 2025
1 parent 4688395 commit 4bf5f6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/xss-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const rules: IWhiteList = {
ol: [],
u: [],
table: ['class', 'style'],
colgroup: [],
col: ['style'],
tbody: ['class', 'style'],
tr: ['class', 'style'],
th: ['class', 'style', 'colspan', 'rowspan'],
Expand Down

0 comments on commit 4bf5f6c

Please sign in to comment.