0.2.1 • Published 4 years ago
xssjs v0.2.1
xssjs
xss escape/unescape javascript library
How to build your own xssjs
Clone a copy of the main xssjs git repo by running:
git clone git://github.com/kazikai/xssjs.gitInstall rollup npm global
cs xssjs
npm i -g rollup
npm iEnter the xssjs directory and run the build script:
npm run buildbuild
npm run builddevelopment
npm run devtest
npm test or npm run testHow to use
Bower
bower install xssjsBrowser
<script src="dist/xss.js"></script>let cleanString = xss.excape('dirty string');
let originString = xss.unescape(cleanString);Node.js
npm i --save xssjsconst xss = require('xssjs');
let cleanString = xss.excape('dirty string');
let originString = xss.unescape(cleanString);