java-html-sanitizer
java-html-sanitizer copied to clipboard
How to add new possible values(props) for existing DEFAULT css properties.
For example height property is available in DEFAULT CssSchema but initial is not included in the possible values for height property. Is there a way I can add more values to possible values? I need to do this for more than one properties.
If I try to include the property(with values I need) using withProperties method of CssSchema, I'm getting following error:
Error injecting constructor, java.lang.IllegalArgumentException: Duplicate irreconcilable definitions for font-weight as I'm trying to use union method.
I am also seeing this issue when trying to add colour values with CSS variable references.
.allowStyling(
CssSchema.withProperties(
Map.of("color",
new CssSchema.Property(258,
Set.of("var(--text-secondary)"),
Collections.emptyMap()))))
Related: #207