<?php
$text 
"This tekßt is göing\tto be changed\n";
$data filter_var(
    
$text
    
filter_id'special_chars' ),
    
FILTER_FLAG_STRIP_HIGH
);
var_dump$data );
?>
Output
string(39) "This tekt is ging to be changed "