]*>/','',$html);
$html= preg_replace('/<([^>]*)(class|lang|size|face)=("[^\"]*"|\'[^\']*\'|[^>]+)([^>]*)>/','',$html);
$html= preg_replace('/<([^>]*)(class|lang|size|face)=("[^\"]*"|\'[^\']*\'|[^>]+)([^>]*)>/','',$html);
$html= preg_replace('//', '', $html);
$html= preg_replace('/<\/meta(.|\s)*?>/', '', $html);
$html= preg_replace('//', '', $html);
$html= preg_replace('//s', '', $html);
$html= preg_replace('/\s{2,}/sm',' ',$html,PREG_SET_ORDER); //Mehr als zwei leerzeichen entfernen
$html= preg_replace('/\s{2,}/sm',' ',$html,PREG_SET_ORDER); //Mehr als zwei leerzeichen entfernen
$html= str_replace (array("\r\n"), array(""), $html);
/* Nächster Abschnitt neu ab 10.06.2011*/
$html = strip_tags($html, '
,,,- ,
');
$html = str_replace (array('"'), array("\""), $html);
$html = str_replace (array("'"), array("\""), $html);
$html = str_replace (array(" type='disc'"), array(""), $html);
$html = strip_tags($html, '
,,,- ,
');
$html = str_replace (array('"'), array("\""), $html);
$html = str_replace (array("'"), array("\""), $html);
$html = str_replace (array(" type='disc'"), array(""), $html);
$html= trim($html);
/* $html= mysqli_escape_string($db,stripslashes($html)); */
return $html;
}
?>