wzyn_toolguard

1.0.0 • Public • Published

安装

npm install wzyn-tools

导入

const wzynTools = require('wzyn_toolguard')

使用说明

执行 npm run test

const htmlstr = '<h1>你好,&copy;<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

Readme

Keywords

none

Package Sidebar

Install

npm i wzyn_toolguard

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.9 kB

Total Files

6

Last publish

Collaborators

  • wzyn2010