Update PsmScraper.php

This commit is contained in:
2020-09-23 02:28:19 +05:00
parent 2262ba4287
commit 21dda46981

View File

@@ -27,8 +27,8 @@ class PsmScraper
$this->title = $node->text();
});
$crawler->filter('.content > p')->each(function ($node) {
$this->content[] = preg_replace("/[a-zA-Z]/", "", $node->text());
$crawler->filter('.content p')->each(function ($node) {
$this->content = explode("<br>",$node->html());
});