mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-10 22:04:24 +00:00
enable xhtml parser
This commit is contained in:
parent
f2dbd1599c
commit
fae43d54e5
@ -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…
x
Reference in New Issue
Block a user