Skip to content
This repository
Browse code

MINOR Removed references to ereg as comments

  • Loading branch information...
commit 2f1b7c1c7105ab08670813fbd473c29d910849af 1 parent 4b2326c
Sean Harvey authored April 10, 2012

Showing 1 changed file with 0 additions and 7 deletions. Show diff stats Hide diff stats

  1. 7  core/Convert.php
7  core/Convert.php
@@ -235,10 +235,6 @@ static function html2raw($data, $preserveLinks = false, $wordWrap = 60, $config
235 235
 			$config = $defaultConfig;
236 236
 		}
237 237
 
238  
-		// sTRIp style and script
239  
-		/* $data = eregi_replace("<style(^A-Za-z0-9>][^>]*)?>.*</style[^>]*>","", $data);*/
240  
-		/* $data = eregi_replace("<script(^A-Za-z0-9>][^>]*)?>.*</script[^>]*>","", $data);*/
241  
-		
242 238
 		$data = preg_replace("/<style([^A-Za-z0-9>][^>]*)?>.*?<\/style[^>]*>/is","", $data);
243 239
 		$data = preg_replace("/<script([^A-Za-z0-9>][^>]*)?>.*?<\/script[^>]*>/is","", $data);
244 240
 
@@ -250,9 +246,6 @@ static function html2raw($data, $preserveLinks = false, $wordWrap = 60, $config
250 246
 		if(!$preserveLinks && !$config['PreserveLinks']) {
251 247
 			$data = preg_replace('/<a[^>]*href\s*=\s*"([^"]*)">(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data);
252 248
 			$data = preg_replace('/<a[^>]*href\s*=\s*([^ ]*)>(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data);
253  
-			
254  
-			/* $data = eregi_replace('<a[^>]*href *= *"([^"]*)">([^<>]*)</a>', '\\2 [\\1]', $data); */
255  
-			/* $data = eregi_replace('<a[^>]*href *= *([^ ]*)>([^<>]*)</a>', '\\2 [\\1]', $data); */
256 249
 		}
257 250
 	
258 251
 		// Replace images with their alt tags

0 notes on commit 2f1b7c1

Please sign in to comment.
Something went wrong with that request. Please try again.