From 11b1d06b8c4672f7dab98f8de5a7f7f95eeeec12 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 23 Dec 2013 00:01:00 +0100 Subject: Chargement différé des iframe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implémente https://github.com/marienfressinaud/FreshRSS/issues/313 (uniquement pour la vue en articles repliés) --- lib/lib_rss.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 4ef06ddbc..a1fadcb24 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -288,6 +288,14 @@ function lazyimg($content) { ); } +function lazyIframe($content) { + return preg_replace( + '/]+?)src=[\'"]([^"\']+)[\'"]([^>]*)>/i', + '', + $content + ); +} + function uTimeString() { $t = @gettimeofday(); return $t['sec'] . str_pad($t['usec'], 6, '0'); -- cgit v1.2.3