From 2f1b7c1c7105ab08670813fbd473c29d910849af Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 10 Apr 2012 22:09:11 +1200 Subject: [PATCH] MINOR Removed references to ereg as comments --- core/Convert.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/Convert.php b/core/Convert.php index 98abea47f..97fc7d0e5 100644 --- a/core/Convert.php +++ b/core/Convert.php @@ -235,10 +235,6 @@ class Convert { $config = $defaultConfig; } - // sTRIp style and script - /* $data = eregi_replace("][^>]*)?>.*]*>","", $data);*/ - /* $data = eregi_replace("][^>]*)?>.*]*>","", $data);*/ - $data = preg_replace("/][^>]*)?>.*?<\/style[^>]*>/is","", $data); $data = preg_replace("/][^>]*)?>.*?<\/script[^>]*>/is","", $data); @@ -250,9 +246,6 @@ class Convert { if(!$preserveLinks && !$config['PreserveLinks']) { $data = preg_replace('/]*href\s*=\s*"([^"]*)">(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data); $data = preg_replace('/]*href\s*=\s*([^ ]*)>(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data); - - /* $data = eregi_replace(']*href *= *"([^"]*)">([^<>]*)', '\\2 [\\1]', $data); */ - /* $data = eregi_replace(']*href *= *([^ ]*)>([^<>]*)', '\\2 [\\1]', $data); */ } // Replace images with their alt tags