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