java-html-sanitizer
java-html-sanitizer copied to clipboard
Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
It seems like other `text-decoration` properties are not supported, like `text-decoration-line` or `text-decoration-color`. I am using the default CssSchema with common blocks and inline formatting. ```java new HtmlPolicyBuilder() .allowCommonBlockElements() .allowCommonInlineFormattingElements()...
HTML sanitizer is converting the font names in 'style' attribute of HTML element to lower case. This results in content rendered not using right font. Sample Input : `fourth line`...
Given inputs cleared, after apply sanitize for "
Hi, I am using Java Html Sanitizer for sanitizing the content entered by the user. But while sanitizing the request body i am receiving below error. **Required request part 'issueModel'...
Hello, I am using this library, I am stuck at one point. I want to know after defining the policy, how can I again customize it. Like I want to...
Allow the `colspan` attribute on `td` and `th` table elements in the `TABLES` policy factory. Fixes #195
We recently came across a problem where an **img**-element with missing **src**-attribute caused our PDF engine to break. As the current version of the html sanitizer only contains a method...
E.g `` policy :`` I want get as same as policy-format before attribute without attribute value. Thanks
## The problem I'm trying to solve I was trying to use this tool for the stripping all dangerous markup. One thing I'm trying to do though is allow the...
I want to completely replace tag if I encounter certain conditions. I have found I have found example in the `HtmlPolicyBuilder` Javadoc (https://www.javadoc.io/doc/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20180219.1/org/owasp/html/HtmlPolicyBuilder.html) ```java new HtmlPolicyBuilder() .allowElement( new ElementPolicy() {...