1.0.0 • Published 2 years ago
dimeng-tools v1.0.0
install
npm install dimeng-tools
import
const dimeng= require('dimeng-tools')
dateFormat
const dtStr = dimeng.dateFormat(new Date())
// 2022--09--22 14:18:25
console.log(dtStr);
htmlEscape
const htmlstr = '<h1 title="abc">this is h1 asdadsdad!!&&&</h1>'
const str = dimeng.htmlEscape(htmlstr)
console.log(str);
htmlUnescape
const newStr = dimeng.htmlUnescape(str)
console.log(newStr);
开源协议
ISC
1.0.0
2 years ago