java-html-sanitizer
java-html-sanitizer copied to clipboard
Allowing HTML attributes with _ as the first character in the name (#355)
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 this case.
Fix for issue https://github.com/OWASP/java-html-sanitizer/issues/355