OWASP sanitizer generates unexpected results

I am using OWASP sanitizer to do some clean for the input data. Below is the Policy I used return new HtmlPolicyBuilder() .allowElements(“a”, “label” …