note 77380 added to ref.simplexml
| From: | cmsaatgmxdotde at osu1 dot php dot net | Date: | Mon, 27 Aug 2007 12:07:55 +0000 |
| Subject: | note 77380 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129832@lists.php.net to get a copy of this message | ||
I had a problem with entities.
My first solution:
I saved Data that way:
$ENTRY_->
addchild('Nachricht',htmlentities($_POST["blog"]));
Had Entities in the XML-File like:
<!ENTITY auml "&auml">
And I loaded the Data that way:
html_entity_decode($ENTRY->Nachname);
But after saving and
loading the xml-file the entity-entry
<!ENTITY auml "&auml">
disappeared. strange...
My second solution:
With saving the Data this way:
$ENTRY_->
addchild('Nachricht',htmlentities(htmlentities($_POST["blog"])));
I can now load it with html_entity_decode without the
entity-entry in the XML-file!
I tested it with äöü.
Hope it helpes.
----
Server IP: 69.147.83.197
Probable Submitter: 89.247.79.144
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- https://master.php.net/note/edit/77380
Del: integrated -- https://master.php.net/note/delete/77380/integrated
Del: useless -- https://master.php.net/note/delete/77380/useless
Del: bad code -- https://master.php.net/note/delete/77380/bad+code
Del: spam -- https://master.php.net/note/delete/77380/spam
Del: non-english -- https://master.php.net/note/delete/77380/non-english
Del: in docs -- https://master.php.net/note/delete/77380/in+docs
Del: other reasons-- https://master.php.net/note/delete/77380
Reject -- https://master.php.net/note/reject/77380
Search -- https://master.php.net/manage/user-notes.php