note 65587 added to ref.xml
| From: | james at clickmedia dot com | Date: | Thu, 04 May 2006 03:35:26 +0000 |
| Subject: | note 65587 added to ref.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110492@lists.php.net to get a copy of this message | ||
Thanks for fixing those extra backslashes for me. I thought the double backslashes were necessary
because my code sample didn't seem display properly in the Preview page when I used single
slashes. I figured someone would eventually correct it for me. :)
Anyways, I have an update to storing HTML within XML. Different servers seem to handle HTML
entities differently and I ended up having problems even after changing the trim() function to
ignore spaces.
My latest solution is to just enclose the HTML using CDATA blocks. For example:
<mytag><![CDATA[Here is a bunch of <a href="#">HTML
code</a>]]></mytag>
This seems to be a more compatible solution than making the trim() function to ignore spaces.
----
Server IP: 64.71.164.2
Probable Submitter: 69.237.153.195
----
X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.xml.php
Edit -- http://master.php.net/note/edit/65587
Del: integrated -- http://master.php.net/note/delete/65587/integrated
Del: useless -- http://master.php.net/note/delete/65587/useless
Del: bad code -- http://master.php.net/note/delete/65587/bad+code
Del: spam -- http://master.php.net/note/delete/65587/spam
Del: non-english -- http://master.php.net/note/delete/65587/non-english
Del: in docs -- http://master.php.net/note/delete/65587/in+docs
Del: other reasons-- http://master.php.net/note/delete/65587
Reject -- http://master.php.net/note/reject/65587
Search -- http://master.php.net/manage/user-notes.php