Invalid Characters, XML...

From: Date: Mon, 04 Aug 2003 01:51:53 +0000
Subject: Invalid Characters, XML...
Groups: php.general 
Request: Send a blank email to php-general+get-158106@lists.php.net to get a copy of this message
Im using PHP to write to XML files, but I am having some problems. A lot of users are cutting and pasting content from text editors like word, which uses odd quotation marks, dashes, etc. which PHP writes to the XML file, and then the XML parser does not under stand. Is there a stripslashes() or htmlspecialchars() equivalent that will convert this kind of stuff to the correct ascii text? Russ

« previous php.general (#158106) next »