Re: using DOM functions with embedded html / encoding

From: Date: Tue, 21 Mar 2006 21:00:17 +0000
Subject: Re: using DOM functions with embedded html / encoding
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-232358@lists.php.net to get a copy of this message
saveHTML() doesn't change the behavior. regarding decoding the entities, that would normally take place on the client but that is something that I have no control over. is there some way to set a global "preserve entities" when creating the document? ughh.... -jonathan On Mar 21, 2006, at 11:32 AM, Anthony Ettinger wrote:
...or you may have to decode the html entities first. On 3/21/06, Anthony Ettinger <aettinger@sdsualumni.org> wrote:
saveHTML();? instead of saveXML(); On 3/21/06, jonathan <news_php@arclocal.com> wrote:
I'm interested in creating an xml doc from my php5/mysql 4.1 app. I'm using PHP's DOM functions to create the xml file. Some of the text fields now have well-formed html embedded in them. When I do a $dom->createElement('item_name', $clean_slot), it encodes the values to &lt;b&gt; for <b>. How would I suppress this behavior. It doesn't look like there is any other variable I can pass to createElement or to appendChild. thanks, jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html
-- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html


« previous php.general (#232358) next »