void-elements

Array of "void elements" defined by the HTML specification.

sanitize-html

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.