کد:
function filter_html_dangerous_tags($what){
$what = str_replace( "<script>" , "<script>" , $what );
$what = str_replace( "</script>" , "</script>" , $what );
$what = str_replace( "<object>" , "<object>" , $what );
$what = str_replace( "</object>" , "</object>" , $what );
$what = str_replace( "<iframe>" , "<iframe>" , $what );
$what = str_replace( "</iframe>" , "</iframe>" , $what );
$what = str_replace( "<frameset>" , "<frameset>" , $what );
$what = str_replace( "<frameset>" , "<frameset>" , $what );
$what = str_replace( "<frame>" , "<frame>" , $what );
$what = str_replace( "</frame>" , "</frame>" , $what );
$what = str_replace( "<link>" , "<link>" , $what );
$what = str_replace( "</link>" , "</link>" , $what );
return $what;
}