npm install ly-tools-wh
const ly = require('ly-tools-wh')
// 调用 dataFormat 对时间进行格式化
const newLY = ly.dateFormat(new Date());
// 结果
console.log('格式化时间: ', newLY);
// 待转换的 HTML 字符串
const htmlStr = '<h1 title="abc">这是h1标签<span> </span></h1>'
// 调用 htmlEscap 方法进行转换
const str = ly.htmlEscape(htmlStr)
// 结果
console.log('转义 HTML 字符: ' + str);
// 待还原的 HTML 字符串
const rawHTML = ly.htmlUnEscape(str);
console.log('还原 HTML 字符: '+ rawHTML);
ISC
// 解决了初期版本 包 名称和md文档说明内容不一致!