Reader tweak to allow feeds with doctype like for http://ezrss.it/feed/
This commit is contained in:
parent
4346b27648
commit
5120a0adb4
1
vendor/PicoFeed/Reader.php
vendored
1
vendor/PicoFeed/Reader.php
vendored
@ -54,6 +54,7 @@ class Reader
|
||||
{
|
||||
// Strip HTML comments
|
||||
$data = preg_replace('/<!--(.*)-->/Uis', '', $data);
|
||||
$data = preg_replace('/<!DOCTYPE(.*)>/Uis', '', $data);
|
||||
|
||||
// Find <?xml version....
|
||||
if (strpos($data, '<?xml') !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user