Re: XML and htmlentities conditionally?
| From: | Brian V Bonini | Date: | Sun, 29 Jan 2006 13:09:27 +0000 |
| Subject: | Re: XML and htmlentities conditionally? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229419@lists.php.net to get a copy of this message | ||
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
> I have a block of XML that looks as follows:
>
> <name><*_~_*> Røyken VGS <*_~_*></name>
> My question is, can I in any way efficiently (i -stress- efficiently, if
> anyone read my previous XML and special characters post its a rather
> large XMl file (breaking 18mb now) and speed is of the essence) cause
> html_entity_decode to not decode those tags?
What's the end results your looking for?
If you are trying to pass that data straight through the parser try
wrapping it in CDATA.
<name><![CDATA[<*_~_*> Røyken VGS <*_~_*>]]></name>
--
s/:-[(/]/:-)/g
Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org