') !== false ); if( $allow_comments ) { $string = str_replace(array(''), array('<!--', '-->'), $string); $allowed_tags = str_replace('', '', $allowed_tags); } $string = strip_tags( $string, $allowed_tags ); if( $allow_comments ) $string = str_replace(array('<!--', '-->'), array(''), $string); return $string; } function removeEvilAttributes($tagSource) { $stripAttrib = "' (style|class)=\"(.*?)\"'i"; $tagSource = stripslashes($tagSource); $tagSource = preg_replace($stripAttrib, '', $tagSource); return $tagSource; } function removeEvilTagsA($source) { $allowedTags='

' . '
    1. ' . '