Reader tweak to allow feeds with doctype like for http://ezrss.it/feed/

This commit is contained in:
Thririot Christophe 2013-05-29 10:17:00 -04:00
parent 4346b27648
commit 5120a0adb4

View File

@ -54,6 +54,7 @@ class Reader
{ {
// Strip HTML comments // Strip HTML comments
$data = preg_replace('/<!--(.*)-->/Uis', '', $data); $data = preg_replace('/<!--(.*)-->/Uis', '', $data);
$data = preg_replace('/<!DOCTYPE(.*)>/Uis', '', $data);
// Find <?xml version.... // Find <?xml version....
if (strpos($data, '<?xml') !== false) { if (strpos($data, '<?xml') !== false) {