npm install itheima-zwl-tools
const itheima_zwl_tools = require('itheima_zwl_tools');
// 调用dateFormat格式化时间
const formatDate = itheima_zwl_tools.dateFormat(new Date());
//需要转换的HTML字符
const htmlStr = '<h1 title="anc">这是h1标签字符<span>123 </span></h1>';
//调用htmlEscape转换
const escapeStr = itheima_zwl_tools.htmlEscape(htmlStr);
const unEscapeStr = itheima_zwl_tools.htmlUnEscape(escapeStr);
ISC