@mozeyinedu/domcleanup
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

domcleanup

This package purifies the dom against XSS attacks. It is built on top of JSDOM and dompurify

Exmaples

Installation

npm i @mozeyinedu/domcleanup

Usage

    const domcleanup = require('@mozeyinedu/domcleanup)
    
    console.log(domcleanup('<b>hello there</b>'))

Package Sidebar

Install

npm i @mozeyinedu/domcleanup

Weekly Downloads

3

Version

0.3.0

License

MIT

Unpacked Size

15.7 kB

Total Files

13

Last publish

Collaborators

  • mozeyinedu