npm.io
2.0.0 • Published 2 years ago

@mozeyinedu/check

Licence
MIT
Version
2.0.0
Deps
0
Size
15 kB
Vulns
0
Weekly
0

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>'))

Keywords