egg-html-purify
HTML5 Purifier plugin for egg.js
The plugin uses a whitelist based approach to filter malicious characters,tags, attributes and attribute values while keeping the resulting output HTML5 compliant.
Install
$ npm i egg-html-purify --save
Usage
// {app_root}/config/plugin.jsexportshtmlPurify = enable: true package: 'egg-html-purify';
Example
thisapp; // or use in contextthisctx;
Questions & Suggestions
Please open an issue here.