SvgSanitizerProcessor
class SvgSanitizerProcessor implements ProcessorInterface (View source)
Properties
protected Sanitizer | $sanitizer | SVG sanitizer. |
|
protected SanitizerOptions | $sanitizerOptions | SVG sanitizer options. |
Methods
bool
shouldProcess(Version $version)
Check if a file version should be processed (it must be an SVG image).
Details
__construct(Sanitizer $sanitizer, SanitizerOptions $sanitizerOptions)
Initialize the instance.
bool
shouldProcess(Version $version)
Check if a file version should be processed (it must be an SVG image).
{@inheritdoc}
process(Version $version)
Remove potentially harmful elements and attributes from the SVG image.
{@inheritdoc}