Skip to content

HTML Sanitizer Component

Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

html sanitizer Purifier

Use Composer to install this package in your PHP project:

$ composer require symfony/html-sanitizer

Sponsor this package Your support keeps it maintained, well documented, and moving forward. In return, your logo and a short description of your company will be featured in this section.

Contact us to learn more.

Latest Version
8.0.7
License
MIT
Total Downloads
31 million
Monthly Downloads
2,361,110
Dependents
49
Stars
278
First Release
December 2021