1.0.0 • Published 3 years ago

toolescape v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

包的使用说明文档

安装

    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