parse5
v8.1.1
Published
HTML parser and serializer.
Readme
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>