spryker/util-sanitize-xss
UtilSanitizeXss module
1.4.0
2.4M downloads/mo
#3776 most downloaded on Packagist
spryker/util-sanitize-xss
What this package is like to depend on
Last release 4 months ago
21 Apr 2026
Release timing varies
gaps range from 3 weeks to 3.2 years
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
5 releases · first in 2019
2 releases in the last 12 months
see the full history below
Release timeline
5 releases · Dec 2019 to Apr 2026Releases
latest 5-
1.4.021 Apr 2026Release notes
Open source →Included commits: 1.3.0...1.4.0
Fixes
- Fixed HTML sanitization on PHP 8.4 by introducing
NativeHtmlParserthat passesLIBXML_NOERRORwhen parsing HTML, preventing malformed entity warnings from propagating asErrorExceptionthrough Spryker's error handler and causing back office configuration failures.
- Fixed HTML sanitization on PHP 8.4 by introducing
-
1.3.002 Apr 2026Release notes
Open source →Included commits: 1.2.0...1.3.0
Improvements
- Introduced
UtilSanitizeXssServiceInterface::sanitize()to sanitize untrusted HTML using the SymfonyHtmlSanitizerwith full configuration support. - Introduced
HtmlSanitizerConfigTransfer,HtmlSanitizerAllowedElementTransfer, andHtmlSanitizerAllowedAttributeTransfertransfer objects.
Adjustments
- Added
SymfonyandTransferto dependencies
- Introduced
-
1.2.025 Apr 2023Release notes
Open source →Included commits: 1.1.0...1.2.0
Improvements
- Adjusted
UtilSanitizeXssService::sanitizeXss()so HTML comments are not removed from the given text.
- Adjusted
-
1.1.013 Mar 2023Release notes
Open source →Included commits: 1.0.0...1.1.0
Improvements
- Adjusted
UtilSanitizeXssService::sanitizeXss()so Twig functions are not removed from the given text.
- Adjusted
-
1.0.024 Dec 2019Release notes
Open source →Included commits: https://github.com/spryker/util-sanitize-xss/tree/1.0.0
Initial Release
- Introduced
UtilSanitizeXssService::sanitizeXss()Service method to sanitize untrusted HTML to prevent XSS attacks.
- Introduced