npm.io
1.0.0 • Published 5 years ago

toolescape

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

包的使用说明文档

安装

    npm i toolescape

引入

const tool = require('toolescape')

使用

const res1 = tool.formatTime(new Date())
const res2 = tool.escapeHTML('<span style="color: red">hello</span>')
const res3 = tool.unescapeHTML(
  '&lt;span style=&quot;color: red&quot;&gt;hello&lt;/span&gt;'
)

许可

ISC