think-esapi

An ESAPI(Enterprise Security API) extend for ThinkJS


Keywords
thinkjs3, esapi, xss
License
MIT
Install
npm install think-esapi@1.1.4

Documentation

think-esapi

npm Build Status Coverage Status

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

  • this.encodeForHTML(data)
  • this.encodeForCSS(data)
  • this.encodeForJS(data)
  • this.encodeForURL(data)
  • this.encodeForHTMLAttribute(data)
  • this.encodeForBase64(data)