From 3bac78a05ac1c13a71a86e114482687463572c89 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Dec 2009 11:39:43 +0300 Subject: [PATCH] mobile: call sanitize_rss() on article content --- mobile/functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mobile/functions.php b/mobile/functions.php index 5f6256dc..0d235c7d 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -309,10 +309,11 @@ print ""; print ""; - - print "

"; - print $line["content"]; - print "

"; + + $content = sanitize_rss($link, $line["content"]); + $content = preg_replace("/href=/i", "target=\"_blank\" href=", $content); + + print "
$content
"; print "
"; -- 2.39.5