<?
$arUrlRewrite = array(
array(
"CONDITION" => "#^/catalog/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => "/catalog/index.php",
)
);
<?
$hh = file_get_contents('ссылка');
$document = phpQuery::newDocument($hh);
$hb = $document->find('div.b-pb-publication-body')->removeAttr('class');
foreach ($hb as $text) {
$pqtext = pq($text);
$pqtext->find('p')->removeAttr('class');
$pqtext->find("div.b-pb-publication-body__background:contains('больше')")->remove();
$pqtext->find('div')->removeAttr('class');
$pqtext->find('div > figure')->removeAttr('class');
$pqtext->find('div > figure > img')->removeAttr('class');
};
$detail_text_res = $hb->html(); // $detail_text_res - текст статьи
print_r($detail_text_res);
?>