think-esapi
An ESAPI(Enterprise Security API) extend for ThinkJS
How to use
Install
npm install think-esapi --save
Configure extends.js
const esapi = moduleexports = esapi;
Method
this.encodeForHTML(data)
this.encodeForCSS(data)
this.encodeForJS(data)
this.encodeForURL(data)
this.encodeForHTMLAttribute(data)
this.encodeForBase64(data)