Skip to content

Commit

Permalink
fix: support more td th attributes (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Aug 19, 2024
1 parent 199076b commit 213651a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/sanitizeHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function sanitizeHtmlPlugin(options?: sanitizeHtml.IOptions): Plugin {
iframe: ["src", "width", "height"],
a: ["href", "rel", "target"],
"*": ["class", ...getMentionIdentityUserTargetElementAttrs()],
td: ["align"],
th: ["align"],
td: ["align", "colspan", "rowspan", "scope"],
th: ["align", "colspan", "rowspan"],
li: ["data-list"],
...allowedAttributes,
},
Expand Down

0 comments on commit 213651a

Please sign in to comment.