'<', '>' => '>' , '&' =>'&', ' ' => ' ', 'href' => '#' , 'iframe' => '#', 'src' => '#', 'embed' => '#', 'include' => '#');
//
$string= strtr($string, $replace);
//$new_string= strip_tags($new_string);
$pattern = "/<(.*?)>/";#<\/$tagname>
if(preg_match($pattern, $string)){
$charlimit = 500;
}else{
}
if(substr($string,$charlimit-1,1) != ' '){
$string = substr($string,'0',$charlimit);
$array = explode(' ',$string);
array_pop($array);
$new_string = implode(' ',$array);
return $new_string." ...";
}else{
return substr($string,'0',$charlimit-1).' ...';
}
}
$a=0;
while ($row = mysql_fetch_array($result3)) {
#-------------------------------
$demos = "$row[66]";
//strip_tags
#-------------------------------
//for($a=0; $a<=150; $a++){
//echo "";
//}
?>
- Escuela: - Distrito Escolar: