Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelnisi/html-reduce
Boil down HTML
https://github.com/michaelnisi/html-reduce
Last synced: about 1 month ago
JSON representation
Boil down HTML
- Host: GitHub
- URL: https://github.com/michaelnisi/html-reduce
- Owner: michaelnisi
- License: mit
- Created: 2018-03-18T06:01:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T06:22:36.000Z (over 6 years ago)
- Last Synced: 2024-10-13T18:45:30.995Z (2 months ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://secure.travis-ci.org/michaelnisi/html-reduce.svg)](http://travis-ci.org/michaelnisi/html-reduce)
[![Coverage Status](https://coveralls.io/repos/github/michaelnisi/html-reduce/badge.svg?branch=master)](https://coveralls.io/github/michaelnisi/html-reduce?branch=master)# html-reduce
The **html-reduce** [Node.js](http://nodejs.org/) package provides a single function that boils down HTML to the simplest, obviously opinionated, form. The initial use case of **html-reduce** is normalizing [RSS item-level descriptions](http://cyber.harvard.edu/rss/encodingDescriptions.html) and [atom:summary elements](https://tools.ietf.org/html/rfc4287#section-4.2.13) to a simple form that can be easily rendered by a naïve client, with very limited HTML parsing capabilities, producing homgenous output.
**html-reduce** is a [sanitize-html](https://github.com/punkave/sanitize-html) configuration.
## Specification
Reduce all HTML to `
`, `
## License
[MIT License](https://github.com/michaelnisi/html-reduce/blob/master/LICENSE)