NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #217 most downloaded on Packagist
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
Latest stable
v8.1.11
Last release 14 days ago
06 Nov 2026
Release timing varies
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
105 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-RC2...v7.0.0) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-RC2...v7.0.0)
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-BETA3...v7.0.0-RC1) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-BETA3...v7.0.0-RC1)
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-BETA1...v7.0.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v7.0.0-BETA1...v7.0.0-BETA2)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feature symfony/symfony#52166 [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document (@lyrixx)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.6...v7.0.0-BETA1)
security #cve-2026-118517 Require special schemes and scheme-relative URLs to carry a non-empty authority ( @nicolas-grekas )
Changelog (v6.4.49...v6.4.50)
[EOM] End of maintenance release for branch 6.4
[SECURITY] Security release
Changelog ( v6.4.46...v6.4.49 )
Changelog (v6.4.46...v6.4.49)
[SECURITY] Security release
bug #65843 Drop relative URLs whose first path segment contains a colon instead of throwing (@nicolas-grekas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.45...v6.4.46)
bug #65702 Compare schemes and hosts case-insensitively (@nicolas-grekas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.41...v6.4.45)
security #cve-2026-48761 Sanitize URL attributes on , , , , and the URL inside content (@nicolas-grekas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.40...v6.4.41)
security #cve-2026-45753 Sanitize URLs in action, formaction, poster and cite attributes (@nicolas-grekas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.35...v6.4.40)
allowLinkHosts/allowMediaHosts bypass via URL parser differentials and <area> misclassification (@alexandre-daubois)bug #63598 Add 'sms' to hostless schemes (@hivokas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.34...v6.4.35)
bug symfony/symfony#62201 [HtmlSanitizer] Remove srcdoc from allowed attributes (@Spomky)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.27...v6.4.28)
srcdoc from allowed attributes (@Spomky)bug symfony/symfony#58547 [HtmlSanitizer] Fix force_attributes not replacing existing attribute in initial data (@tgalopin)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.24...v6.4.25)
force_attributes not replacing existing attribute in initial data (@tgalopin)Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.23...v6.4.24) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.23...v6.4.24)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.20...v6.4.21) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.20...v6.4.21)
bug symfony/symfony#59525 [HtmlSanitizer] Fix access to undefined keys in UrlSanitizer (Antoine Beyet)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.17...v6.4.18)
bug symfony/symfony#59321 [HtmlSanitizer] reject URLs containing whitespaces (@xabbuh)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.16...v6.4.17)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.12...v6.4.13) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.12...v6.4.13)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.11...v6.4.12) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.11...v6.4.12)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.7...v6.4.8) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.7...v6.4.8)
bug symfony/symfony#54513 [HtmlSanitizer] Ignore Processing Instructions (@smnandre)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.6...v6.4.7)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.3...v6.4.4) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.3...v6.4.4)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.2...v6.4.3) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.2...v6.4.3)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-RC2...v6.4.0) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-RC2...v6.4.0)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-BETA3...v6.4.0-RC1) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-BETA3...v6.4.0-RC1)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-BETA1...v6.4.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.4.0-BETA1...v6.4.0-BETA2)
feature symfony/symfony#52166 [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document (@lyrixx)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.6...v6.4.0-BETA1)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.11...v6.3.12) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.11...v6.3.12)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.6...v6.3.7) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.6...v6.3.7)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.3...v6.3.4) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.3...v6.3.4)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.0-RC2...v6.3.0) *
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.0-RC2...v6.3.0)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.0-BETA3...v6.3.0-RC1) *
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.3.0-BETA3...v6.3.0-RC1)
feature symfony/symfony#48616 [Notifier] GoogleChat CardsV1 is deprecated we must use cardsV2 instead (@daifma)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.10...v6.3.0-BETA1)
placeholder_attr option (@elementaire)enum expression function (@alexandre-daubois)notifier.logger_notification_listener to notifier.notification_logger_listener (@ker0x)extra attribute for HttpClient Configuration (@voodooism)#[WithLogLevel] for setting custom log level for exceptions (@angelov)TaggedIteratorArgument (@chalasr)EmojiTransliterator (@fancyweb)Clock class and now() function (@nicolas-grekas)dd() and dump() to display a label (@alexandre-daubois)Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.6...v6.2.7) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.6...v6.2.7)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.4...v6.2.5) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.4...v6.2.5)
bug #48602 Fix HtmlSanitizer default configuration behavior for allowed schemes (Titouan Galopin)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.1...v6.2.2)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.0-RC2...v6.2.0) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.0-RC2...v6.2.0)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.0-BETA3...v6.2.0-RC1) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.2.0-BETA3...v6.2.0-RC1)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.6...v6.2.0-BETA1) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.6...v6.2.0-BETA1)
Nothing published for this version
bug #48602 Fix HtmlSanitizer default configuration behavior for allowed schemes (Titouan Galopin)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.8...v6.1.9)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.0-RC1...v6.1.0) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.0-RC1...v6.1.0)
bug #46274 Fix node renderer handling of self-closing (void) elements (omniError)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.0-BETA2...v6.1.0-RC1)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.0-BETA1...v6.1.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.1.0-BETA1...v6.1.0-BETA2)
feature #45377 Bump minimum version of PHP to 8.1 (nicolas-grekas)
Changelog (https://github.com/symfony/html-sanitizer/compare/v6.0.7...v6.1.0-BETA1)
One column per quarter.