npm install zll-tools
const zll = require('./zll-tools')
// 调用dataFromat函数格式化时间
const date = zll.dataFromat(new Date())
// 带转换的html字符串
const htmlStr ='<h1 title="abc">这是h1标签 </h1>'
const str = zll.htmlEscape(htmlStr)
console.log(str);
const str1 = zll.htmlUnEscape(str)
console.log(str1);
ISC