https://github.com/alnorris/svg-sanitizer
Whitelist-based PHP SVG sanitizer.
https://github.com/alnorris/svg-sanitizer
Last synced: about 1 month ago
JSON representation
Whitelist-based PHP SVG sanitizer.
- Host: GitHub
- URL: https://github.com/alnorris/svg-sanitizer
- Owner: alnorris
- License: mit
- Created: 2013-05-24T23:54:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-25T00:42:34.000Z (about 12 years ago)
- Last Synced: 2025-04-02T06:51:13.758Z (about 2 months ago)
- Language: PHP
- Size: 109 KB
- Stars: 22
- Watchers: 0
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SVG Sanitizer
======Whitelist-based PHP SVG sanitizer.
Usage
-----```php
load("evil.svg");// sanitize!
$svg->sanitize();// Print out sanitized SVG
echo $svg->saveSVG();?>
```License
-------[MIT](http://opensource.org/licenses/MIT)