concrete/src/File/Image/Svg/Sanitizer.php
public function sanitizeData($data, SanitizerOptions $options = null)
    {
        $xml = $this->dataToXml($data);

        if ($options === null) {
            $options = new SanitizerOptions();
        }
        $this->processNode($xml->documentElement, $options);

        return $this->xmlToData($xml);
    }
public function sanitizeData($data, SanitizerOptions $options = null)
    {
        $xml = $this->dataToXml($data);

        if ($options === null) {
            $options = new SanitizerOptions();
        }
        $this->processNode($xml->documentElement, $options);

        return $this->xmlToData($xml);
    }
public function sanitizeData ( $ data , SanitizerOptions $ options = null ) { $ xml = $ this -> dataToXml ( $ data ) ; if ( $ options === null ) { $ options = new SanitizerOptions ( ) ; } $ this -> processNode ( $ xml -> documentElement , $ options ) ; return $ this -> xmlToData ( $ xml ) ; }
Sanitize a string containing an SVG document.

@param string $data the input filename
@param \Concrete\Core\File\Image\Svg\SanitizerOptions $options the sanitizer options (if NULL, we'll use the default ones)

@throws \Concrete\Core\File\Image\Svg\SanitizerException in case of errors

@return string
Sanitize a string containing an SVG document .