java-html-sanitizer icon indicating copy to clipboard operation
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.

Results 114 java-html-sanitizer issues
Sort by recently updated
recently updated
newest added

I changed the condition in the HtmlStreamRenderer.isValidHtmlName for `_` to not consider it invalid if it's the first character of the name. I also added a unit test that checks...

HTML5 specification is not disallowing special characters to be the start of the attribute name but java-html-sanitizer removes any attribute that has a name that starts with a different character...

I am using Preprocessor to change content of a specific tag. The implementation looks like follows, I will listen for _openTag_ event and when current tag is _style_, I handle...