mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
enable xhtml parser
This commit is contained in:
parent
f2dbd1599c
commit
fae43d54e5
1 changed files with 7 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue