Does DOMPurify support Jquery by default?
In a project we are using DOMPurify with jPurify. The problem is that it does not support the append() method. I read about a PR in the jPurify repository that adds append for jQuery version 3.1.1, while we are using 3.7.1.
I have also read that jPurify is no longer supported. Would using DOMPurify alone be enough to solve this? Is jQuery's append() method supported? Thank you very much.
Hey there :) I would assume yes, that should still work.
If you hook into append() and the force the sanitization via DOMPurify, you should be doing the right thing to combat XSS. From what we know right now, our current sanitization automatically covers jQuery's HTML parsing weirdness and all should be good.
Thank You for the quick reply! <3
You are welcome, let me know please how it went and if it worked :) Thx.