enable xhtml parser

This commit is contained in:
yggverse 2024-03-22 19:11:27 +02:00
parent f2dbd1599c
commit fae43d54e5

View File

@ -231,8 +231,13 @@ foreach($index->search('')
} else continue;
// DOM crawler
if (false !== stripos($type, 'text/html'))
{
if (
false !== stripos($type, 'text/html')
||
false !== stripos($type, 'text/xhtml')
||
false !== stripos($type, 'application/xhtml')
) {
$crawler = new Symfony\Component\DomCrawler\Crawler();
$crawler->addHtmlContent(
$response