Current collected state Current
Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
提供了格式化时间,HTMLEscape的功能
npm intsall 3itshuai-tools
const itheima = require('itheima-tooole')
const dt = dataFamort.dataFormat(new Date());
console.log(dt) //2023-08-13 11:45:34
const str = dataFamort.htmlEscape(htmlStr)
<h1 title='abc'>这是一个<span>123 </span><h1></h1>
// <h1 title='abc'>这是一个<span>123&nbsp;</span><h1></h1>
const str2 = dataFamort.htmlUnEscape(htmlUnStr)
const htmlUnStr ="<h1 title='abc'>这是一个<span>123&nbsp;</span><h1></h1>"
//结果
<h1 title='abc'>这是一个<span>123 </span><h1></h1>
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 13 Aug 2023 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5a8943959ed2ddf544772d4fb81ab18a502046d577493c8821fec1dd0b73f1d4