1.0.0 • Published 1 year ago

itaguang v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

安装

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

1.0.0

1 year ago