src/ResponseProcessor/SimpleXmlResponseProcessor.php
protected function sanitizeXml($xml)
    {
        // Sanitize the XML if requested:
        $newXML = trim(preg_replace($this->sanitizeRegex, ' ', $xml, -1, $count));

        if ($count > 0 && $this->badXmlLog) {
            $this->logBadXML($xml);
        }

        return $newXML;
    }
protected function sanitizeXml($xml)
    {
        // Sanitize the XML if requested:
        $newXML = trim(preg_replace($this->sanitizeRegex, ' ', $xml, -1, $count));

        if ($count > 0 && $this->badXmlLog) {
            $this->logBadXML($xml);
        }

        return $newXML;
    }
protected function sanitizeXml ( $ xml ) { // Sanitize the XML if requested: $ newXML = trim ( preg_replace ( $ this -> sanitizeRegex , ' ' , $ xml , - 1 , $ count ) ) ; if ( $ count > 0 && $ this -> badXmlLog ) { $ this -> logBadXML ( $ xml ) ; } return $ newXML ; }
Sanitize XML.

@param string $xml XML to sanitize

@return string
Sanitize XML .