a little demo
-dog-bro-
npm i dog_bro_test_tools
const dog_bro = require (`./dog_bro_test_tools`)
const timeStr = tools.dateFormat (new Date ())
console.log (timeStr)
const htmlStr = `<h1 title="abc">这里是h1标签<span>123 </span></h1>`
const str = tools.htmlEscape (htmlStr)
console.log (str)
const escape = tools.htmlUnEscape (str)
console.log (escape)
ISC
特别感谢我同桌对我进行的孜孜不倦的教诲,使我最终写出了这个包.