Files
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

1.1 KiB

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