sanitize-html

2.9.0Last updated on Feb 1, 2023
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

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

Versions

Sort by
2.9.0 Feb 1, 2023
53 KBUnpacked size
4Modules
2.8.1 Dec 21, 2022
3Websites
51 KBUnpacked size
4Modules
2.8.0 Dec 12, 2022
20Websites
51 KBUnpacked size
4Modules
2.7.3 Oct 27, 2022
24Websites
51 KBUnpacked size
4Modules
2.7.2 Sep 15, 2022
25Websites
51 KBUnpacked size
4Modules