31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
|
@extends('layouts.applicant-layout')
|
||
|
@section('content')
|
||
|
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Олимпиады для школьников </div>
|
||
|
{{-- пофиксить!!!!--}}
|
||
|
<div class="container py-4 d-flex justify-content-center" style="padding-left: 150px;" >
|
||
|
|
||
|
<div class="col-10">
|
||
|
@php
|
||
|
use App\Services\PageScrapper;
|
||
|
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/olimpiady-dlya-shkolnikov/", '<div class=["\']content_info["\']>');
|
||
|
$row = $pageScrapper->getHTML();
|
||
|
$content = $pageScrapper->normalizeURLFile($row);
|
||
|
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
||
|
|
||
|
// $tmp = preg_match_all('/<p (.*)>/isU', "https://mkgtu.ru/postuplenie/olimpiady-dlya-shkolnikov/", $arr);
|
||
|
//
|
||
|
// $arr[0] = array_unique($arr[0]);
|
||
|
// $str = $arr[0][0];
|
||
|
$content = str_replace('<p style="text-align: left;">', '<p>', $content);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
echo $content;
|
||
|
|
||
|
@endphp
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|