Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lqqyt2423/cleanhtml
清洗凌乱的 html,去除多余的属性、嵌套和所有的行内样式等
https://github.com/lqqyt2423/cleanhtml
Last synced: about 2 months ago
JSON representation
清洗凌乱的 html,去除多余的属性、嵌套和所有的行内样式等
- Host: GitHub
- URL: https://github.com/lqqyt2423/cleanhtml
- Owner: lqqyt2423
- Created: 2018-07-25T10:29:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T13:40:54.000Z (over 6 years ago)
- Last Synced: 2024-09-23T22:16:28.727Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cleanhtml
## 功能
清洗凌乱的 html,去除多余的属性、嵌套和所有的行内样式等。
## 安装
```bash
npm install @liqiqiang/cleanhtml --save
```## 使用
```javascript
const cleanhtml = require('@liqiqiang/cleanhtml');const html = cleanhtml(rawHtml);
```