note 48499 deleted from function.dom-domdocument-createtextnode by didou

From: Date: Mon, 17 Apr 2006 12:33:35 +0000
Subject: note 48499 deleted from function.dom-domdocument-createtextnode by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108324@lists.php.net to get a copy of this message
Note Submitter: c de-ought d at earthlink dot net ---- In PHP 5.0.3, this function appears to automatically escape html special characters similar to the function htmlentities(). Examples: <?php $name="C & D Plumbing"; $child=$root->appendChild($anyDOM->createElement("name")); $child->appendChild($anyDOM->createTextNode($name)); ?> Will produce: <name>C &amp; D Plumbing</name> While... <?php $name=htmlentities("C & D Plumbing"); $child=$root->appendChild($eventDOM->createElement("name")); $child->appendChild($eventDOM->createTextNode($name)); ?> Will produce: <name>C &amp;amp; D Plumbing</name>

« previous php.notes (#108324) next »