diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-02-09 00:38:26 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-02-09 00:38:26 +0100 |
commit | 70aa7a5cb9de83c0966985618d6e6d4d4400dd0d (patch) | |
tree | 034c862909cbd070e03612395b9a6d85a1c2c9eb /node_modules/cssfilter/lib/index.js | |
parent | added http://beziapp/?m=Name Surname to redirect to the messaging page with prefilled recipient (diff) | |
download | beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar.gz beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar.bz2 beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar.lz beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar.xz beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.tar.zst beziapp-70aa7a5cb9de83c0966985618d6e6d4d4400dd0d.zip |
Diffstat (limited to 'node_modules/cssfilter/lib/index.js')
-rw-r--r-- | node_modules/cssfilter/lib/index.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/node_modules/cssfilter/lib/index.js b/node_modules/cssfilter/lib/index.js deleted file mode 100644 index 712f55f..0000000 --- a/node_modules/cssfilter/lib/index.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * cssfilter - * - * @author 老雷<leizongmin@gmail.com> - */ - -var DEFAULT = require('./default'); -var FilterCSS = require('./css'); - - -/** - * XSS过滤 - * - * @param {String} css 要过滤的CSS代码 - * @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr - * @return {String} - */ -function filterCSS (html, options) { - var xss = new FilterCSS(options); - return xss.process(html); -} - - -// 输出 -exports = module.exports = filterCSS; -exports.FilterCSS = FilterCSS; -for (var i in DEFAULT) exports[i] = DEFAULT[i]; - -// 在浏览器端使用 -if (typeof window !== 'undefined') { - window.filterCSS = module.exports; -} |