npm i itheima_wm
##导入
const itheima = require('./index')
// 调用 dateFormat 对时间进行格式化
const date = itheima.dateFormat(new Date())
console.log(date);
//结果 2022-09-21 09-35-39
const str = '<h4 title="abc">这是h4标签<span>123 </span></h4>'
const htmlstr = itheima.htmlEscape(str)
console.log(htmlstr);
// 结果 <h4 title="abc">这是h4标签<span>123&nbsp;</span></h4>
const str1 = '<h4 title="abc">这是h4标签<span>123&nbsp;</span></h4>'
const res = itheima.htmlUnEscape(str1)
console.log(res);
ISC