parse5

HTML parser and serializer.

parse5 downloads parse5 version parse5 license

parse5Similar Packages:

Npm Package Weekly Downloads Trend

3 Years
🌟 Show real-time usage chart on parse5's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of parse5](https://npm-compare.com/img/npm-trend/THREE_YEARS/parse5.png)](https://npm-compare.com/parse5#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 Show GitHub stars trend chart on parse5's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of parse5](https://npm-compare.com/img/github-trend/parse5.png)](https://npm-compare.com/parse5)

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
parse5252,786,0033,943387 kB4112 days agoMIT

README for parse5

parse5

parse5

HTML parser and serializer.

npm install --save parse5

πŸ“– Documentation πŸ“–

Usage

Parse HTML into a document tree and serialize it back to HTML.

import { parse, serialize } from 'parse5';

const document = parse('<p>Hello, world!</p>');
console.log(serialize(document));
// <html><head></head><body><p>Hello, world!</p></body></html>

List of parse5 toolset packages

GitHub

Online playground

Changelog