while ($row = mysqli_fetch_assoc($rs_result)) { 
$data_dob = date(DATE_RFC822, strtotime($row['data_dob']));
$title =  $row['title'];
$image =  $row['image'];
$text =  $row['text'];
$url =  $row['url'];

// изменяем пути к картинка на полные, при необходимости
$text = str_ireplace("/img_publ/", "https://seolik.ru/img_publ/", $text);
$text = str_ireplace("/img_p/", "https://seolik.ru/img_p/", $text);
$text = str_ireplace("/img_news/", "https://seolik.ru/img_news/", $text);

// все рисунки помещаем в тег <figure>
$text = preg_replace('/(<img.+?>)/iu','<figure>$1</figure>', $text);

// удаляем все атрибуты style
$text = preg_replace('/(<[^>]+) style=".*?"/iu', '$1', $text);

// Удаляем все html теги кроме нужных нам в разметке
$text =  strip_tags($text, '<h1><p><img><br><hr><ul><ol><li><b><strong><i><em><sup><sub><ins><del><small><big><pre><abbr><u><a>');

$text = html_entity_encode($text);

$all_url = $all_url.'
<item turbo="true">
<link>https://seolik.ru/blog/'.$url.'</link>
<turbo:content>
<![CDATA[
<header>
<figure>
<img src="https://seolik.ru'.$image.'" />
</figure>
<h1>'.$title.'</h1>
</header>
'.$text.'
]]>
</turbo:content>
<pubDate>'.$data_dob.'</pubDate>
</item>';

} // перебираем все записи