Home / Technologies / DOMPurify vs highlight.js
DOMPurify vs highlight.js: who uses which
DOMPurify is on more sites: 421,276 against 44,557 for highlight.js, about 9.5 times as many. Here's how they compare across the websites we've indexed, and where each one does best.
Where each one is used
| Domain | DOMPurify | highlight.js |
|---|---|---|
| .com on .com | 177,784 | 18,516 |
| .de in Germany | 31,391 | 1,437 |
| .org on .org | 17,331 | 1,827 |
| .jp in Japan | 13,388 | 656 |
| .net on .net | 8,587 | 5,451 |
| .fr in France | 13,168 | 750 |
| .uk in the UK | 11,115 | 359 |
| .ru on .ru | 8,462 | 2,177 |
335 sites run both at once.
Questions
Which is more popular, DOMPurify or highlight.js?
DOMPurify is on more sites: 421,276 against 44,557 for highlight.js, about 9.5 times as many, across the sites StackGrep has indexed.
Do sites use DOMPurify and highlight.js together?
335 sites load both. That's often a switch in progress, or two teams picking different tools.
Want the whole list?
Sign up to download every site using DOMPurify or highlight.js as a spreadsheet and see new ones as they appear. 200 free credits to start. No card needed.