npm i xxf1221
const tool = require('xxf1221');
// 调用格式化日期函数
const res1 = tool.formatTime(new Date());
console.log(res1);
// 调用转义 html 标签的方法
const res2 = tool.escapeHTML('<span style="color: red">hello</span>');
console.log(res2);
// 调用还原 html 标签的方法
const res3 = tool.unescapeHTML(
'<span style="color: red">hello</span>'
);
console.log(res3);
MIT