npm install itheima-tools
const itheima = require('itheima-tools')
const str = it.dateFormat(new Date())
console.log(str);
const str2 = '<h1 style="z-index=999;">这是一个html标签<span>123&nbsp</span></h1></h1>'
const nstr=it.htmlUnEscape(str2);
// 2023-03-04 14:36:29
// <h1 style="z-index=999;">这是一个html标签<span>123 </span></h1></h1>
ISC