private SanitizedResult getCleanResults()

in src/main/java/org/apache/sling/xss/impl/HtmlToHtmlContentContext.java [82:94]


    private SanitizedResult getCleanResults(PolicyHandler handler, String input) {
        SanitizedResult results;
        try {
            results = handler.getHtmlSanitizer().scan(input);
        } catch (StackOverflowError e) {
            log.debug(
                    "Will perform a second attempt at filtering the following input due to a StackOverflowError:\n{}",
                    input);
            results = handler.getFallbackHtmlSanitizer().scan(input);
            log.debug("Second attempt was successful.");
        }
        return results;
    }