<?php
$content = file_get_contents('
https://site.ru/');
$pos = strpos($content, '<a class="h1-wrapper" href="/"><h1 class="name">');
$content = substr($content, $pos);
$pos = strpos($content, '
</h1></a>');
$content = substr($content, 0, $pos);
$content = str_replace('','', $content);
echo $content;
?>
Подскажите почему не парсит блок?