str_replace ile değiştirebilirsin
    function prepareSearchContent( $text, $length = 200, $searchword )
    {
        // strips tags won't remove the actual jscript
        $text = preg_replace( "'<script[^>]*>.*?</script>'si", "", $text );
        $text = preg_replace( '/{.+?}/', '', $text);
        //$text = preg_replace( '/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text );
        // replace line breaking tags with whitespace
        $text = preg_replace( "'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text );
        $text = str_replace("ı","ı",$text); //örnek 
        $text = str_replace("Å?","ş",$text); //örnek
        return SearchHelper::_smartSubstr( strip_tags( $text ), $length, $searchword );
    }
bu şekilde cogaltabilirsin(yaninda örnek yazanlar)