DB, XML and & sign
| From: | Muhammed Mamedov | Date: | Thu, 18 Dec 2003 16:51:06 +0000 |
| Subject: | DB, XML and & sign | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32115@lists.php.net to get a copy of this message | ||
Hello everyone,
I read input from user, then via XML send it to DB.
thing is that when user enters "&" sign XML is no more well-formatted, what causes
error.
Does anyone has any suggestions on how to remove & sign from user input, considering that data
entered by users can be multilingual, that is "ö" character is being converted to some
unicode "ê" character which also contains "&" sign, but this one
doesn't cause any problem - any other user entered "&" signs should be removed or
should be translated to unicode & "!".
Your help will be appreciated.
Muhammed Mamedov