1.0.1 • Published 5 years ago
xiongtoll12 v1.0.1
1.安装
npm install xiong-tools
2.引入
const fan = require("xiong-tools");
3.日期格式化
4.转义
const str1 = '<h1 title="logo">标题</h1>'
const str2 = fan.htmlEscape(str1);
console.log(str2);
5.还原
const str3 = fan.htmlUnEscape(str2);
console.log(str3);
6.开源协议
ISC
1.0.1
5 years ago