3 ms·
Found a polyfill here https://github.com/mozilla/sanitizer-polyfill https://github.com/mozilla/sanitizer-polyfill
by cheeaun 1y ago
Found a polyfill here https://github.com/mozilla/sanitizer-polyfill https://github.com/mozilla/sanitizer-polyfill
- dkyc 1y agoThis just uses DOMPurify under the hood
- Izkata 1y ago...yes, that's what a polyfill is: a javascript implementation of a new spec that's only applied when the current browser doesn't yet support the new spec. This lets devs start using it right away, then when it has enough support across browsers the polyfill can be removed without changing their code.