@xlkklt/tools
v1.0.2
Published
``` npm install @xlkklt/tools ```
Readme
安装方式
npm install @xlkklt/tools导入
const tools = require("@xlkklt/tools");格式化时间
tools.format(new Date());转义 HTML 中特殊字符
const htmlStr = '<h1 title="title">测试<span>span </span></h1>';
const str = tools.htmlEscape(htmlStr);还原 HTML 中特殊字符
tools.htmlUnEscape(str);开源协议
ISC
