node-tools-yuan
v1.0.0
Published
HTMLEscape,dateFormat
Downloads
4
Maintainers
Readme
install
npm install node-tools
import
const node_tools = require('./node-tools')
formatDate
const dtStr = node_tools.dateFormat(new Date())
console.log(dtStr)
// result 2021-05-08 12:17:57
transform HTML function
const htmlStr = 'This h1 tag123 ' const str = node_tools.htmlEscape(htmlStr) console.log(str)
return HTML
const str2 = node_tools.htmlUnEscape(str) console.log(str2)
ISC