Releases: spryker/util-sanitize-xss
Releases · spryker/util-sanitize-xss
Release list
1.4.0
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.
1.3.0
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
1.2.0
Included commits: 1.1.0...1.2.0
Improvements
- Adjusted
UtilSanitizeXssService::sanitizeXss()so HTML comments are not removed from the given text.
1.1.0
Included commits: 1.0.0...1.1.0
Improvements
- Adjusted
UtilSanitizeXssService::sanitizeXss()so Twig functions are not removed from the given text.
1.0.0
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.