文件名称:cleanse-html:从文本中删除HTML并返回纯文本
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-08 06:12:45
JavaScript
cleanse-html 简单的工具,用于从字符串中删除html并返回纯文本字符串 安装 npm install cleanse - html 简单的例子 var cleanse = require ( 'cleanse-html' ) ; var html = '
Hello World
' ; console . log ( cleanse ( html ) ) ; // Hello World //To select things you want to keep, pass an options object as the second parameter //or call configure() with the options object (see below for options) html = "<head><title>Testing</title>【文件预览】:
cleanse-html-master
----package.json(723B)
----test()
--------gauntlet.js(2KB)
----LICENSE(1KB)
----README.md(1KB)
----cleanse.js(6KB)