aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 584a16862..2ce44c73d 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -353,7 +353,6 @@ class FreshRSS_Entry extends Minz_Model {
}
public static function getContentByParsing($url, $path, $attributes = array()) {
- require_once(LIB_PATH . '/lib_phpQuery.php');
$system_conf = Minz_Configuration::get('system');
$limits = $system_conf->limits;
$feed_timeout = empty($attributes['timeout']) ? 0 : intval($attributes['timeout']);
@@ -391,18 +390,9 @@ class FreshRSS_Entry extends Minz_Model {
}
if ($html) {
+ require_once(LIB_PATH . '/lib_phpQuery.php');
$doc = phpQuery::newDocument($html);
$content = $doc->find($path);
-
- foreach (pq('img[data-src]') as $img) {
- $imgP = pq($img);
- $dataSrc = $imgP->attr('data-src');
- if (strlen($dataSrc) > 4) {
- $imgP->attr('src', $dataSrc);
- $imgP->removeAttr('data-src');
- }
- }
-
return trim(sanitizeHTML($content->__toString(), $url));
} else {
throw new Exception();