note 98008 added to function.simplexml-load-file
| From: | krajcar | Date: | Thu, 20 May 2010 12:29:08 +0000 |
| Subject: | note 98008 added to function.simplexml-load-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169446@lists.php.net to get a copy of this message | ||
simplexml_load_file seems to be doing htmlspecialchars_decode() defaultly.
When I have an XML file similar to this:
...
<structure>
<heading>...</heading>
<id_parent>625</id_parent>
<pageMainText><p><br><img style=quote;width: 85px;
height: 60pxquote; height=60 hspace=5 src=quote;/download.php?FNAME=...quote; width=85 align=left
border=0>
...
</p></pageMainText>
</structure>
...
, after loading this file via simplexml_load_file, the output of data within the loaded object is
this:
[pageMainText] => '<p><br><img style="width: 85px; height: 60px"
height=60 hspace=5 src="/download.php?FNAME=..." width=85 align=left
border=0>...</p>'
----
Server IP: 147.32.160.17
Probable Submitter: 78.80.169.66
----
Manual Page -- http://www.php.net/manual/en/function.simplexml-load-file.php
Edit -- https://master.php.net/note/edit/98008
Del: integrated -- https://master.php.net/note/delete/98008/integrated
Del: useless -- https://master.php.net/note/delete/98008/useless
Del: bad code -- https://master.php.net/note/delete/98008/bad+code
Del: spam -- https://master.php.net/note/delete/98008/spam
Del: non-english -- https://master.php.net/note/delete/98008/non-english
Del: in docs -- https://master.php.net/note/delete/98008/in+docs
Del: other reasons-- https://master.php.net/note/delete/98008
Reject -- https://master.php.net/note/reject/98008
Search -- https://master.php.net/manage/user-notes.php