1.0.0 • Published 2 years ago
wzyn_toolguard v1.0.0
安装
npm install wzyn-tools
导入
const wzynTools = require('wzyn_toolguard')
使用说明
执行 npm run test
const htmlstr = '<h1>你好,©<span style="color:red">xiao bai</span></h1>'
// 编码
const encodeLabel = wzynTools.htmlEncode(htmlstr)
console.log('*****encodeLabel*****: ', encodeLabel)
// 解码
const decodeLabel = wzynTools.htmlDecode(encodeLabel)
console.log('*****decodeLabel*****: ', decodeLabel)
开源协议
ISC
1.0.0
2 years ago