concrete/src/File/ImportProcessor/SvgSanitizerProcessor.php
public function process(Version $version)
    {
        $resource = $version->getFileResource();
        $originalData = $resource->read();
        $sanitizedData = $this->sanitizer->sanitizeData($originalData, $this->sanitizerOptions);
        if ($sanitizedData !== $originalData) {
            $version->updateContents($sanitizedData);
        }
    }
public function process(Version $version)
    {
        $resource = $version->getFileResource();
        $originalData = $resource->read();
        $sanitizedData = $this->sanitizer->sanitizeData($originalData, $this->sanitizerOptions);
        if ($sanitizedData !== $originalData) {
            $version->updateContents($sanitizedData);
        }
    }
public function process ( Version $ version ) { $ resource = $ version -> getFileResource ( ) ; $ originalData = $ resource -> read ( ) ; $ sanitizedData = $ this -> sanitizer -> sanitizeData ( $ originalData , $ this -> sanitizerOptions ) ; if ( $ sanitizedData !== $ originalData ) { $ version -> updateContents ( $ sanitizedData ) ; } }
Remove potentially harmful elements and attributes from the SVG image.

{@inheritdoc}

@see \Concrete\Core\File\ImportProcessor\ProcessorInterface::process()
Remove potentially harmful elements and attributes from the SVG image .