apostrophecms/sanitize-html

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance

4,117

stars

503

commits

JavaScript

primary language

Feb 26, 2026

updated

README

Deprecated — see our monorepo

We have retired this repository in favor of our monorepo. Follow the link above to jump straight to the appropriate place. Thanks!

Contributors

(top 30 of 86)

abea

110 commits

boutell

99 commits

BoDonkey

25 commits

TrySound

19 commits

apostrophecms/sanitize-html

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance

4,117

stars

503

commits

JavaScript

primary language

Feb 26, 2026

updated

README

Deprecated — see our monorepo

We have retired this repository in favor of our monorepo. Follow the link above to jump straight to the appropriate place. Thanks!

Contributors

(top 30 of 86)

abea

110 commits

boutell

99 commits

BoDonkey

25 commits

TrySound

19 commits

Languages

JavaScript

100.0%