htmlparser2-20kb
Fast & forgiving HTML/XML parser bundled for the browser, < 20 KB, no dependencies
Includes:
-
htmlparser2
3.x -
domhandler
2.x -
dom-serializer
with a fix for #26 - The most useful parts of
domutils
- A
create
utility function for simple DOM node creation - TypeScript type definitions
Excludes:
- The
decodeEntities
option - Support for async usage with streams
FeedHandler
- Some functions from
domutils
-
Automatic fix-up of mixed-case tag and attribute names.
Set the
lowerCaseTags
andlowerCaseAttributeNames
options of the parser tofalse
to retain the casing.