Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed references to ereg as comments

  • Loading branch information...
commit 2f1b7c1c7105ab08670813fbd473c29d910849af 1 parent 4b2326c
@halkyon halkyon authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 core/Convert.php
View
7 core/Convert.php
@@ -235,10 +235,6 @@ static function html2raw($data, $preserveLinks = false, $wordWrap = 60, $config
$config = $defaultConfig;
}
- // sTRIp style and script
- /* $data = eregi_replace("<style(^A-Za-z0-9>][^>]*)?>.*</style[^>]*>","", $data);*/
- /* $data = eregi_replace("<script(^A-Za-z0-9>][^>]*)?>.*</script[^>]*>","", $data);*/
-
$data = preg_replace("/<style([^A-Za-z0-9>][^>]*)?>.*?<\/style[^>]*>/is","", $data);
$data = preg_replace("/<script([^A-Za-z0-9>][^>]*)?>.*?<\/script[^>]*>/is","", $data);
@@ -250,9 +246,6 @@ static function html2raw($data, $preserveLinks = false, $wordWrap = 60, $config
if(!$preserveLinks && !$config['PreserveLinks']) {
$data = preg_replace('/<a[^>]*href\s*=\s*"([^"]*)">(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data);
$data = preg_replace('/<a[^>]*href\s*=\s*([^ ]*)>(.*?)<\/a>/ie', "Convert::html2raw('\\2').'[\\1]'", $data);
-
- /* $data = eregi_replace('<a[^>]*href *= *"([^"]*)">([^<>]*)</a>', '\\2 [\\1]', $data); */
- /* $data = eregi_replace('<a[^>]*href *= *([^ ]*)>([^<>]*)</a>', '\\2 [\\1]', $data); */
}
// Replace images with their alt tags
Please sign in to comment.
Something went wrong with that request. Please try again.