Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Whitelist style attribute on p elements
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Dec 26, 2023
1 parent 9553747 commit c2fcb30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/helpers/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const configuredXss = new xss.FilterXSS({
th: [...xss.whiteList.th, 'style'],
picture: [],
source: ['media', 'sizes', 'src', 'srcset', 'type'],
p: [...xss.whiteList.p, 'style'],
},
css: {
whiteList: {
Expand Down

0 comments on commit c2fcb30

Please sign in to comment.