itaguang
v1.0.0
Published
提供了格式化时间、htmlexcape相关的功能s
Readme
安装
npm install itaguang导入
const itaguang=require('./itaguang')格式化时间
const date=itaguang.dateFormat(new Date())
转义还原html 中的特殊字符
//1转义
let n='<h1 title="name" style="color:red"><span>标题</span></h1>'
const htmlsp= itaguang.htmlexspaes(n)
//2还原
const htmlun= itaguang.htmlunspaes(htmlsp)开源协议
ISC
