Skip to content

Commit

Permalink
feat: Allow caption and summary on table element in HTML sanitizer - E…
Browse files Browse the repository at this point in the history
…XO-65716 - Meeds-io/MIPs#71 (#526)

Allow caption and summary on table element in HTML sanitizer
  • Loading branch information
hakermi authored Sep 25, 2023
1 parent 4ff35b7 commit 8d40393
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ abstract public class HTMLSanitizer {
.allowAttributes("noresize")
.matching(Pattern.compile("(?i)noresize"))
.onElements("table")
.allowAttributes("summary")
.onElements("table")
.allowAttributes("background")
.matching(ONSITE_URL)
.onElements("td",
Expand Down Expand Up @@ -346,6 +348,7 @@ abstract public class HTMLSanitizer {
.globally()
.allowAttributes("v-identity-popover")
.globally()
.allowElements("caption")
.toFactory();

/**
Expand Down

0 comments on commit 8d40393

Please sign in to comment.