nahsra / antisamy

a library for performing fast, configurable cleansing of HTML coming from untrusted sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove all deprecated APIs/features in prep for 1.7.0 release

davewichers opened this issue · comments

Deprecated things to remove in 1.7.0 branch (including the ability to disable schema validation on AntiSamy policy files):

  • CssHandler(Policy, LinkedList<URI>, List<String>, ResourceBundle) constructor and any uses of it.
  • CssHandler(Policy, LinkedList<URI>, List<String>, String, ResourceBundle) constructor and any uses of it.
  • Entire class ASXHTMLSerializer and any uses of it.
    • Not sure how this is invoked/used. There might be some AntiSamy policy elements related to this that we have to retire too?
  • InternalPolicy.isUseXhtml() method and any uses of it.
  • Remove or change all test cases related to the above changes, and Policy as well, so they all pass.

In Policy.java:

  • Remove public static final String USE_XHTML = "useXHTML"
  • Remove public static boolean getSchemaValidation()
  • Remove public static void setSchemaValidation()

Other things to be done as part of 1.7.0 release:

  • enable the directive "noopenerAndNoreferrerAnchors" by default.
  • Update README to reflect all API/Feature changes, with guidance on how to port to new APIs.

Reformatting prior to 1.7.0 release:

  • Address issue #112
  • Reformat all files to comply with Spotless

All addressed, merged into main.