<?php
if($site == 'focus.ua'){
$text = str_replace("<p>"," ",$text);
$text = str_replace("</p>"," ",$text);
$text = str_replace("&","&",$text);
$text = str_replace(" "," ",$text);
}
if($site == 'tut.by'){
if(@preg_match("/alt=\"\"/>/i",$text)){
$text = explode("alt=\"\"/>", $text);
$text = $text[0].'alt=""/></img>'.$text[1];
}
if(preg_match("/margin-left: 5px;\">/i",$text)){
$text = explode("margin-left: 5px;\">", $text);
$text = $text[0].'margin-left: 5px;"></img>'.$text[1];
}
$text = str_replace("<div class=\"authorAddon\" style=\"padding-top: 1em;\">"," ",$text);
$text = str_replace("<div class=\"caption1\">"," ",$text);
$text = str_replace("<div class=\"article_image\">"," ",$text);
$text = str_replace("<div id=\"inject_927281222\">"," ",$text);
$text = str_replace("<div style=\"text-align: justify;\">"," ",$text);
$text = str_replace(" "," ",$text);
}
/*if(preg_match("/alt=\"\"/>/i",$text)){
$text = explode("alt=\"\"/>", $text);
$text = $text[0].'alt=""/></img>'.$text[1];
}
if(preg_match("/margin-left: 5px;\">/i",$text)){
$text = explode("margin-left: 5px;\">", $text);
$text = $text[0].'margin-left: 5px;"></img>'.$text[1];
}
$text = str_replace("<div class=\"authorAddon\" style=\"padding-top: 1em;\">"," ",$text);
$text = str_replace("<div class=\"caption1\">"," ",$text);
$text = str_replace("<div class=\"article_image\">"," ",$text);
$text = str_replace("<p>"," ",$text);
$text = str_replace("</p>"," ",$text);
$text = str_replace("<div id=\"inject_927281222\">"," ",$text);
$text = str_replace("<div style=\"text-align: justify;\">"," ",$text);
$text = str_replace("&","&",$text);*/
?>