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

0.2.3 • 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.2.3

License

MIT

Unpacked Size

15.5 kB

Total Files

13

Last publish

Collaborators

  • mozeyinedu