Open Butanium opened 2 years ago
What do you mean by "overflows?" Are you talking about the CSS overflow-x
properties?
Or do the semicolons inside your HTML tags relate to your question?
Hello, the overflow-x properties
I believe overflow-x is recognized by the CSS property validator.
Thanks for your answer !
How do you add them to the PolicyFactory
as it's done for TABLES
etc ?
If I import org.owasp.html.CssSchema
and add
.and(CssSchema.DEFINITIONS)
at this line of code will it works ?
no :/
Add this to your policy to explicitly allow this property (with values as defined in CssSchema):
.allowStyling(CssSchema.withProperties(List.of("overflow-x")))
Hello, the codingame game engine which allow people to create games for its platform use your sanitizer on the game documentation. When I tried to implement some overflow on tables, it got sanitized. The game engine principal contributor told me that he allowed everything he could and that he didn't know your sanitizer would delete overflows.
Is this possible to allow them ?
Here is the part of their code where they sanitize the game statement, and here is the part of my html page including the overflow :