Added changes to search by Vicon structure. Added fix for Page view for settings column.

This commit is contained in:
F4ilji
2025-04-03 15:11:04 +05:00
parent b104a04f43
commit 13c45b80d2
17 changed files with 288 additions and 76 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Services\Filament\Services;
use DiDom\Document;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
class HtmlContentExtractorService
{
public function getContent(string $html): ?array
{
$document = new Document($html);
$content = $document->first('.vikon-content');
$breadcrumb = $content->first('.row');
$content->firstInDocument('.row')->remove();
return [$content->html(), $breadcrumb->html()] ?? null;
}
}