note 65587 deleted from ref.xml by bjori
| From: | bjori@php.net | Date: | Mon, 09 Oct 2006 11:06:46 +0000 |
| Subject: | note 65587 deleted from ref.xml by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118266@lists.php.net to get a copy of this message | ||
Note Submitter: james at clickmedia dot com
----
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.