{"library":"html-parser","type":"library","category":null,"description":"The `html-parser` library provides a fault-tolerant parser for HTML and XML, designed to process even malformed input without 'explosions'. Its primary feature is robust sanitization capabilities, allowing developers to strip unwanted elements, attributes, and comments from untrusted HTML content. The library operates using a callback-based API, offering granular control over how various HTML tokens (elements, attributes, text, comments, CDATA, doctype) are handled during parsing. Currently at version 0.11.0 and last published over nine years ago, this package is no longer actively maintained. Its key differentiators historically were its resilience to invalid markup and its built-in, configurable sanitization features, making it suitable for preparing user-generated HTML for safe display, though its age raises concerns about modern security vulnerabilities.","language":"javascript","status":"abandoned","version":"0.11.0","tags":["javascript","html","xml","parser","explosion"],"last_verified":"Wed May 27","install":[{"cmd":"npm install html-parser","imports":["const htmlParser = require('html-parser');","const htmlParser = require('html-parser');\nhtmlParser.parse(htmlString, callbacks);","const htmlParser = require('html-parser');\nconst sanitizedHtml = htmlParser.sanitize(htmlString, options);"]},{"cmd":"yarn add html-parser","imports":[]},{"cmd":"pnpm add html-parser","imports":[]}],"homepage":null,"github":"https://github.com/tmont/html-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/html-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/html-parser/compatibility"}}