', '
', '
', '' ); $newStrings = array('
',
'
',
'
',
'
',
'
',
'
',
'
',
'
', '
',
'
',
'',
'
',
'',
'
', '
', ''); $article_only = str_replace($orgStrings, $newStrings, $article_only); $temp = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $article_only); $article_only = $temp; $temp = preg_replace('/\s\s+/', ' ', $article_only); $article_only = $temp; $re = '/ style="height:(.+?)width: 640px;">/'; $temp = preg_replace($re, '>', $article_only); $article_only = $temp; $re = '/