diff --git a/commons-component-common/src/main/java/org/exoplatform/commons/utils/HTMLSanitizer.java b/commons-component-common/src/main/java/org/exoplatform/commons/utils/HTMLSanitizer.java index 85dc4f9cbe..684f17a28a 100644 --- a/commons-component-common/src/main/java/org/exoplatform/commons/utils/HTMLSanitizer.java +++ b/commons-component-common/src/main/java/org/exoplatform/commons/utils/HTMLSanitizer.java @@ -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", @@ -346,6 +348,7 @@ abstract public class HTMLSanitizer { .globally() .allowAttributes("v-identity-popover") .globally() + .allowElements("caption") .toFactory(); /**