try {
$response = $this->_client->$method($url, $data)->send();
$this->_log("Status code: ".$response->statusCode);
$this->_log("Response: ".print_r($response->data, true));
return $response->isOk ? $response->data : null ;
}
catch (Exception $e) {
return null;
}
И trim пробовал и str_replace и strip_tags. Я гоыорил выше - этот конский JS просто вообще из преисподней!