1.0.0 • Published 3 years ago
epiphanypackage v1.0.0
##安装
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);
/**输出转换结果:<h1>html</h1>*/
console.log(result);
1.0.0
3 years ago