NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sorry guys, VERY bad coding night tonight!

David Sklar sklar at sklar.com
Wed Sep 3 11:25:51 EDT 2003


You can also surround the encoded element content with <![CDATA[ ]]>
markers, like this:

<subcategory><![CDATA[Content Management, Versioning &#38;
Delivery:]]></subcategory>

David

On Wednesday, September 03, 2003 11:20 AM,  wrote:

> I had a similar problem parsing ampersands in XML and converting the
> page to XHTML via PHP.  To end up with compliant XHTML entities, I
> had to double encode ampersands in the XML like so:
>
> <subcategory>Content Management, Versioning &#38;#38;
> Delivery:</subcategory>
>
> If the sample above gets processed in your mail client, that's
> "ampersand - pound - 3 - 8 - pound - 3 - 8"
>
>
>
>
>>> How can I ensure that when going back and forth between HTML, PHP
>>> and XML that "å" REMAINS "å" AS IS???
>>
>> I don't really understand, but maybe you can use &amp; for the
>> ampersands?
>>
>> Chris
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list