light-sanitize-html
Lightweight plugin for sanitize your html
Usage
const sanitize = ;let html = ` <script>window.$ = false</script> <style></style> <p> some image <img src="javascript:alter('hello')" onerror="alert('world')"> </p>`; html = ;html == ` window.$ = false <p> some image <img > </p>`; // true