Awesome
think-esapi
An ESAPI(Enterprise Security API) extend for ThinkJS
How to use
Install
npm install think-esapi --save
Configure extends.js
const esapi = require('think-esapi')
module.exports = [
esapi
];
Method
- <code>this.encodeForHTML(data)</code>
- <code>this.encodeForCSS(data)</code>
- <code>this.encodeForJS(data)</code>
- <code>this.encodeForURL(data)</code>
- <code>this.encodeForHTMLAttribute(data)</code>
- <code>this.encodeForBase64(data)</code>