Thursday, 14 April 2016

XML : XML sanitizer and may I replace it with HTML one? [duplicate]

This question already has an answer here:

I have a project in Java that I need to sanitize json, html and xml data. I am using gson for json sanitation but I was wondering if what can I use for XML ? For example org.owasp.html.Sanitizers is for HTML, but can I use it to sanitize both XML and HTML.

Regards, Stefan

No comments:

Post a Comment