OWASP / java-html-sanitizer

Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
Other
834 stars 209 forks source link

How to add new possible values(props) for existing DEFAULT css properties. #264

Open lakshmisagar-as opened 2 years ago

lakshmisagar-as commented 2 years ago

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.