Normally when you put HTML into an XML node, it has to be within cdata. So maybe CF is "fixing" the HTML for you?
On Tue, Sep 7, 2010 at 4:40 PM, Jake Munson <[email protected]> wrote: > >>So wait - you put the string into an XML object? >> >>Maybe you can pastebin more of the code. > > I have developed a workaround that avoids this problem, but for educational > purposes here's the bit of code that seems to be hosing the HTML: > > <cfset parksXML.Parks.Park[i].SiteAbstract.XmlText = editCopy> > > "editCopy" is made up of various data, but this piece we are concerned with: > <font color="#045172" size="12"><b>Trenner Park</b></font><br><br> > > Before the above XML insert this HTML is not escaped (as explained in a > previous message). After the insert it looks like this: > <font color="#045172" size="12"><b>Trenner > Park</b></font><br><br> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336887 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

