mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:35:57 +00:00
fix af_habr
This commit is contained in:
@@ -27,7 +27,7 @@ class Af_Habr extends Plugin {
|
|||||||
if ($doc) {
|
if ($doc) {
|
||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
|
|
||||||
$basenode = $xpath->query("//div[@class='content_html_format']")->item(0);
|
$basenode = $xpath->query("//div[contains(@class,'content') and contains(@class, 'html_format')]")->item(0);
|
||||||
|
|
||||||
if ($basenode) {
|
if ($basenode) {
|
||||||
$article["content"] = $doc->saveXML($basenode);
|
$article["content"] = $doc->saveXML($basenode);
|
||||||
|
|||||||
Reference in New Issue
Block a user