Skip to content

Commit 0403bc8

Browse files
authored
Merge CDATA as text nodes (#17)
Fixe an issue with parsing xml with CDATA, for example: <title><![CDATA[XXX]]></title>
1 parent 05f882e commit 0403bc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Feed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private static function loadXml($url, $user, $pass)
188188
throw new FeedException('Cannot load feed.');
189189
}
190190

191-
return new SimpleXMLElement($data, LIBXML_NOWARNING | LIBXML_NOERROR);
191+
return new SimpleXMLElement($data, LIBXML_NOWARNING | LIBXML_NOERROR | LIBXML_NOCDATA);
192192
}
193193

194194

0 commit comments

Comments
 (0)