enshrined/svg-sanitize
PHP SVG sanitizer based on DOMPurify that cleans untrusted SVG/XML, strips dangerous tags and remote references, supports custom whitelists, minification, and reports sanitization issues.
I thought it was time to release a 1.00 version so we can properly follow Semver. Here we go.
href and xlink:href coexist by @nlemoine in https://github.com/darylldoyle/svg-sanitizer/pull/123Full Changelog: https://github.com/darylldoyle/svg-sanitizer/compare/0.22.0...1.0.0
Resolved an issue where attribute name case inconsistencies (e.g., xlink:Href instead of xlink:href) in XML processing could cause namespace lookups and sanitisation to fail. Attribute names in both namespaced and non-namespaced contexts are now normalised to their expected lowercase form before processing. This ensures consistent sanitisation of xlink:href and other targeted attributes regardless of their original case.
Full Changelog: https://github.com/darylldoyle/svg-sanitizer/compare/0.21.0...0.22.0
Props @ohader and @realazizk
How can I help you explore Laravel packages today?