cure53 / DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
https://cure53.de/purify
Other
13.67k stars 698 forks source link

refac(purify): Refactoring Purify #842

Closed ssi02014 closed 1 year ago

ssi02014 commented 1 year ago

Summary

Hello 👋 @cure53 I've done some refactoring around "purify.js". Please review this pull request to see if it's appropriate.

After the modifications, the tests are all passing fine.🙏

Tasks

cure53 commented 1 year ago

Those refactoring look great, thank you :)