summaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php8
1 files changed, 8 insertions, 0 deletions
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(
+ '/<iframe([^>]+?)src=[\'"]([^"\']+)[\'"]([^>]*)>/i',
+ '<iframe$1src="about:blank" data-original="$2"$3>',
+ $content
+ );
+}
+
function uTimeString() {
$t = @gettimeofday();
return $t['sec'] . str_pad($t['usec'], 6, '0');