Skip to content

Commit

Permalink
Merge pull request jupyter-widgets#3565 from jasongrout/allowclass
Browse files Browse the repository at this point in the history
Allow the 'class' attribute to pass the sanitizer
  • Loading branch information
vidartf authored Aug 23, 2022
2 parents 8e335ad + 688364b commit 74774da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base-manager/src/manager-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function default_inline_sanitize(s: string): string {
'ul',
];
const allowedAttributes = {
'*': ['aria-*', 'style', 'title'],
'*': ['aria-*', 'class', 'style', 'title'],
a: ['href'],
img: ['src'],
style: ['media', 'type'],
Expand Down

0 comments on commit 74774da

Please sign in to comment.