Angular HTML Parser

JSON →
library 10.5.0 ·javascript
verified May 27, 2026

angular-html-parser is a JavaScript HTML parser directly extracted from the Angular framework's internal parsing engine, maintained by the Prettier organization. Currently at version 10.5.0, it receives frequent updates, typically syncing with changes made to the HTML parser within the main Angular repository. Its primary purpose is to provide a robust, Angular-compatible HTML parsing mechanism, often leveraged by tools like Prettier for formatting Angular templates. Key differentiators include added support for CDATA and DocType nodes, enhanced source span tracking for elements and attributes, and modifications to handle specific HTML syntax like bogus comments, going beyond a strict 1:1 replica of Angular's upstream parser. It supports Node.js environments version 14 and above.

total hits 35
actors 12 distinct systems
last hit 2d ago Amazonbot
Amazonbot
4
ByteDance
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
CommonCrawl
1
ChatGPT-User
1
Search engines
3
Humans
5

top countries 🇺🇸 United States · 🇩🇪 Germany · VN · 🇸🇬 Singapore · 🇨🇦 Canada