concrete/src/File/Image/Svg/Sanitizer.php
protected function getLoadFlags()
    {
        $flags = LIBXML_NONET | LIBXML_NOWARNING;

        foreach ([
            'LIBXML_PARSEHUGE', //  libxml >= 2.7.0
            'LIBXML_HTML_NOIMPLIED', // libxml >= 2.7.7
            'LIBXML_HTML_NODEFDTD', // libxml >= 2.7.8
            'LIBXML_BIGLINES', // libxml >= 2.9.0
        ] as $flagName) {
            if (defined($flagName)) {
                $flags |= constant($flagName);
            }
        }

        return $flags;
    }
protected function getLoadFlags()
    {
        $flags = LIBXML_NONET | LIBXML_NOWARNING;

        foreach ([
            'LIBXML_PARSEHUGE', //  libxml >= 2.7.0
            'LIBXML_HTML_NOIMPLIED', // libxml >= 2.7.7
            'LIBXML_HTML_NODEFDTD', // libxml >= 2.7.8
            'LIBXML_BIGLINES', // libxml >= 2.9.0
        ] as $flagName) {
            if (defined($flagName)) {
                $flags |= constant($flagName);
            }
        }

        return $flags;
    }
protected function getLoadFlags ( ) { $ flags = LIBXML_NONET | LIBXML_NOWARNING ; foreach ( [ 'LIBXML_PARSEHUGE' , //  libxml >= 2.7.0 'LIBXML_HTML_NOIMPLIED' , // libxml >= 2.7.7 'LIBXML_HTML_NODEFDTD' , // libxml >= 2.7.8 'LIBXML_BIGLINES' , // libxml >= 2.9.0 ] as $ flagName ) { if ( defined ( $ flagName ) ) { $ flags |= constant ( $ flagName ) ; } } return $ flags ; }
Get the flags to be used when loading the XML.

@return int
Get the flags to be used when loading the XML .