1. 17 Jan, 2022 1 commit
  2. 14 Jan, 2022 1 commit
    • Michael Hamann's avatar
      XCOMMONS-901: Support both XHTML 1.0 and XHTML 5 in HtmlCleaner · 3dfab5bf
      Michael Hamann authored
      * Cleanup some comments and introduce a helper to check if the configuration is HTML5.
      * Allow b, i, u and s tags in HTML 5 as they are not obsolete in HTML 5 (and i is in fact frequently used for icons).
      * Add XWikiHTML5TagProvider to fix svg and style tag handling.
      * Fix class fan-out complexity in DefaultHTMLCleaner by not using the CleanerTransformations class but only our subclass.
      3dfab5bf
  3. 13 Jan, 2022 6 commits
  4. 12 Jan, 2022 2 commits
  5. 10 Jan, 2022 5 commits
  6. 07 Jan, 2022 2 commits
  7. 06 Jan, 2022 1 commit
  8. 04 Jan, 2022 1 commit
    • Michael Hamann's avatar
      XCOMMONS-901: Support both XHTML 1.0 and XHTML 5 in HtmlCleaner · df4b0a91
      Michael Hamann authored
      * Add a new HTML_VERSION parameter to HTMLCleanerConfiguration.
      * Pass the HTML version in DefaultHTMLCleaner to HTMLCleaner and set the document type accordingly.
      * Add a tag transformation to transform `<tt>` to `<span class="monospace">`.
      * Add a tag transformation to replace the font filter in HTML5 as the cleaner removes the font tags too early otherwise.
      * Extend BodyFilter to allow more HTML5 tags directly in the body.
      * Add constants for many HTML5 tags in HTMLConstants.
      * Add a new unit test HTML5HTMLCleanerTest to test the behavior of HTMLCleaner with the HTML5 configuration.
      * Modify DefaultHTMLCleanerTest to allow re-using most test methods in HTML5HTMLCleanerTest.
      df4b0a91
  9. 03 Jan, 2022 3 commits
  10. 31 Dec, 2021 2 commits
  11. 29 Dec, 2021 1 commit
  12. 28 Dec, 2021 2 commits
  13. 27 Dec, 2021 3 commits
  14. 23 Dec, 2021 5 commits
  15. 22 Dec, 2021 1 commit
  16. 21 Dec, 2021 1 commit
  17. 20 Dec, 2021 3 commits