result_modifier.php
<?php $isHttps = !empty($_SERVER['HTTPS']) && 'off' !== strtolower($_SERVER['HTTPS']); $domain = ($isHttps ? "https" : "http") . "://".$_SERVER[HTTP_HOST]; foreach ($arResult['ITEMS'] as $key => $arItem){ $arResult['ITEMS'][$key]['description'] = html_entity_decode($arItem["description"]); $full_text = html_entity_decode($arItem["full-text"]); $full_text = preg_replace("/(href|src)\=\"([^(http)])(\/)?/", "$1=\"$domain$2", $full_text); $arResult['ITEMS'][$key]['full-text'] = $full_text; }