public <CTX>String sanitize(@Nullable String html,@Nullable HtmlChangeListener<CTX> listener,@Nullable CTX context){
  if (html == null) {
    return "";
  }
  StringBuilder out=new StringBuilder(html.length());
  HtmlSanitizer.sanitize(html,apply(HtmlStreamRenderer.create(out,Handler.DO_NOTHING),listener,context),preprocessor);
  return out.toString();
}

public < CTX > String sanitize ( @ Nullable String html , @ Nullable HtmlChangeListener < CTX > listener , @ Nullable CTX context ) { if ( html == null ) { return "" ; } StringBuilder out = new StringBuilder ( html . length ( ) ) ; HtmlSanitizer . sanitize ( html , apply ( HtmlStreamRenderer . create ( out , Handler . DO_NOTHING ) , listener , context ) , preprocessor ) ; return out . toString ( ) ; }
a convenience function that sanitizes a string of html and reports the names of rejected element and attributes to listener .
