function check_html($string,$res=""){
if($res==""){
$string=htmlspecialchars ($string);
$string = ereg_replace("\n","
",$string);
$string = ereg_replace("\[b\]","",$string);
$string = ereg_replace("\[/b\]","
",$string);
$string = ereg_replace("\[i\]","",$string);
$string = ereg_replace("\[/i\]","
",$string);
$string = ereg_replace("\[u\]","",$string);
$string = ereg_replace("\[/u\]","
",$string);
$string = ereg_replace("\[codigo\]","",$string);
$string = ereg_replace("\[fincodigo\]","
",$string);
$string = ereg_replace("\[link\]"," $string = ereg_replace("\[sep\]","\">",$string);
$string = ereg_replace("\[/link\]","<\a>",$string);
return($string);
}else{
$string=htmlspecialchars($string);
return($string);
}
}

0 yorum:

Yorum Gönder

 
Top