Current collected state Current
Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
提供了格式化时间,HTMLEscape 的功能
npm install 17-itheima-tools-ceshiceshi
const itheima = require('17-itheima-tools-ceshiceshi')
const dt = itheima.dateFormat(new Date())
console.log('格式化后的时间:', dt);
// 待转换的 HTML 字符串
const htmlStr = '<h1 style="color:red;">你好, ©<span>小黄!</span></h1>'
// 调用 htmlEscape 方法进行转换
const str = itheima.htmlEscape(htmlStr)
console.log('转义后的字符:', str);
const htmlUn = itheima.htmlUnEscape(str)
console.log('还原特殊字符串后的HTML:', htmlUn);
ISC
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 5 Jun 2022 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:201320ff9952023af6ff41038d2bc9f7acf2e41cb4efd62d0426242103514c4c