Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASHTMLSerializer uses deprecated HTMLSerializer. Replace with TrAX. #196

Open
davewichers opened this issue Jul 9, 2022 · 0 comments
Open

Comments

@davewichers
Copy link
Collaborator

davewichers commented Jul 9, 2022

ASHTMLSerializer extends org.apache.xml.serialize.HTMLSerializer, which is deprecated.

"Deprecated. This class was deprecated in Xerces 2.6.2. It is recommended that new applications use JAXP's Transformation API for XML (TrAX) for serializing HTML. See the Xerces documentation for more information."

AntiSamyDOMScanner.java also has a couple of offending lines (As does AntiSamySAXScanner):

      @SuppressWarnings("deprecation")
      org.apache.xml.serialize.OutputFormat format = getOutputFormat();

      //noinspection deprecation
      org.apache.xml.serialize.HTMLSerializer serializer = getHTMLSerializer(out, format);
      serializer.serialize(dom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant