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('')
} else continue; } else continue;
// DOM crawler // 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 = new Symfony\Component\DomCrawler\Crawler();
$crawler->addHtmlContent( $crawler->addHtmlContent(
$response $response

Loading…
Cancel
Save