Browse Source

enable xhtml parser

main
yggverse 9 months ago
parent
commit
fae43d54e5
  1. 9
      src/cli/document/crawl.php

9
src/cli/document/crawl.php

@ -231,8 +231,13 @@ foreach($index->search('') @@ -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

Loading…
Cancel
Save