[xwiki/xwiki-commons] 59d33f: XCOMMONS-2840: Add an API in HTMLCleaner to test i...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-commons Commit: 59d33f623cd146104c69a910c7ce4fd5e4a51141 https://github.com/xwiki/xwiki-commons/commit/59d33f623cd146104c69a910c7ce4f... Author: Michael Hamann <[email protected]> Date: 2023-11-21 (Tue, 21 Nov 2023) Changed paths: A xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/SanitizerDetectorFilter.java M xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/SanitizerFilter.java M xwiki-commons-core/xwiki-commons-xml/src/main/resources/META-INF/components.txt A xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/internal/html/filter/SanitizerDetectorFilterTest.java Log Message: ----------- XCOMMONS-2840: Add an API in HTMLCleaner to test if content is affected by restricted cleaning (#651) * Add a new filter SanitizerDetectorFilter that allows detecting if HTML content is affected by the sanitizer. * Simplify the loop in SanitizerDetectorFilter to not exceed the complexity threshold of SonarLint. * Add a unit test for SanitizerDetectorFilter.
participants (1)
-
XWiki Notifications