Bir fonksiyon oluşturup çekilen haberlerin içerik kısmını fonksiyondan geçirebilirsin.
function clearHref($content) {
$new_content = preg_replace('#<a.*?>(.*?)</a>#i', '\1', $content);
return $new_content;
}
$data = '<a rel="nofollow noreferrer ugc" href="https://www.r10.net/profil/153416-shingeki.html" class="uToggle" data-id="1081408037">shingeki</a>';
echo clearHref($data);Çıktısı: shingeki
çok teşekkür ederim hocam hemen deniyorum