1.0.0 • Published 3 years ago

epiphanypackage v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

##安装

npm install Epiphany_Package

##导入

const epiphanypackage = require('epiphanypackage');

##日期格式化

const date = epiphanypackage.dateFormat(new Date());

##HTMLEscape(HTML语句转义)

/**待转义字符串*/
let HTMLStr = '<h1>html</h1>';
let result = ppiphanypackage.htmlEscape(HTMLStr);
/**输出转换结果:&lt;h1&gt;html&lt;/h1&gt*/
console.log(result);