sanitize-html

2.13.0Last updated on Mar 20, 2024
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

Used on 164 websites

Top usage distribution

30
2.4.0
26
2.5.0
25
2.7.0
25
2.7.2
24
2.7.3
20
2.6.1
20
2.8.0
18
2.5.2

Vulnerabilities

Cross-Site Scripting in sanitize-html
>=0 <1.11.4
Cross-Site Scripting in sanitize-html
>=0 <1.2.3
Improper Input Validation in sanitize-html
>=0 <2.3.1
Improper Input Validation in sanitize-html
>=0 <2.3.2
sanitize-html Information Exposure vulnerability
>=0 <2.12.1
Cross-Site Scripting in sanitize-html
>=0 <1.4.3

Versions

Sort by
2.13.0 Mar 20, 2024
63 KBUnpacked size
4Modules
2.12.1 Feb 22, 2024
61 KBUnpacked size
4Modules
2.12.0 Feb 21, 2024
61 KBUnpacked size
4Modules
2.11.0 Jun 21, 2023
60 KBUnpacked size
4Modules
2.10.0 Feb 17, 2023
78 KBUnpacked size
5Modules