docs: public String filterAntiSamy(String html) {
  
          if (m_antiSamy == null) {
              LOG.warn("Antisamy policy invalid, using escapeXml as a fallback");
              return CmsEncoder.escapeXml(html);
          }
          try {
              CleanResults results = m_antiSamy.scan(html);
              if (results.getNumberOfErrors() > 0) {
                  LOG.info("Antisamy error messages:");
                  for (Object message : results.getErrorMessages()) {
                      LOG.info(message);
                  }
              }
              return results.getCleanHTML();
          } catch (PolicyException e) {
              LOG.error(e.getLocalizedMessage(), e);
              return CmsEncoder.escapeXml(html);
          } catch (ScanException e) {
              LOG.error(e.getLocalizedMessage(), e);
              return CmsEncoder.escapeXml(html);
          }
      }