Well thanks, but I wrote a solution like :
PHP Code:
$txt = preg_replace('/[^A-Za-zÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïñòóôõöøùúûüýÿAaAaAaCcCcCcCcDdÐdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi??JjKkLlLlLl??LlNnNnNn?OoOoOoŒœRrRrRrSsSsSsŠšTtTtTtUuUuUuUuUuUuWwYyŸZzZzŽž?ƒOoUuAaIiOoUuUuUuUuUu?????? ]/i', ' ', $txt1);
Now, here are the issues
1) If I enter spacial characters like „”–…«» they are not removed.
2) If the text has a URL, the script removes the symbols from that too.
Can any one please suggest what is the best way to only allow ENGLISH CHARACTERS, EUROPEAN CHARACTERS, SINGLE SPACE in text, and if there is a URL then do not remove : or & or / or . from that ?
Bookmarks