1.0.3 • Published 2 years ago

little-cleaner v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

little-cleaner

A small utility for reducing the chance of XSS and HTML injection

usage

npm install little-cleaner

see the browser directory for browser files

API

see the Medium article

release history (reverse chronological order)

2022-02-15 v1.0.3 Fixed a stack overflow on line 44 when cleaning arrays.

2022-02-06 v1.0.2 Made Function matching more general. Some functions were getting through. Change initial cleaner to respond to window.DOMContentLoaded rather than window.load. This sets protection earlier. Eliminate browser directory. Final code preparartion is now left upto the build pipeline of the package consumer.

2018-01-21 v0.0.4 Enhanced so that "onXXX" attributes can take functions

2018-01-19 v0.0.3 Firefox and Edge compatibility

2018-01-19 v0.0.2 Added automatic full document protection

2018-01-19 v0.0.1 First public release

1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago