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