src/Http/Response.php
/**
     * Retrieve the cleaned version of the XML.
     *
     * @return string
     */
Retrieve the cleaned version of the XML.
@return string
Retrieve the cleaned version of the XML . @return string
protected function cleanedBody(): string
    {
        return preg_replace(
            ['/&(?!#?[a-z0-9]+;)/', '/<(?!(\?|\/)?[a-z0-9]+)/'],
            ['&amp;', '&lt;'],
            $this->response->body()
        );
    }
protected function cleanedBody ( ) : string { return preg_replace ( [ '/&(?!#?[a-z0-9]+;)/' , '/<(?!(\?|\/)?[a-z0-9]+)/' ] , [ '&amp;' , '&lt;' ] , $ this -> response -> body ( ) ) ; }
Retrieve the cleaned version of the XML.
Retrieve the cleaned version of the XML .