Don't destroy raw data - only do formatting when outputting. Also, many people recommend HtmlEditFormat over XmlFormat for outputting to HTML.
So, if you have an original variable HtmlData containing unescaped characters... - Use HtmlEditFormat(HtmlData) to convert for HTML output. - And JsStringFormat(HtmlData) to display in a JS alert box. (although I'm not sure why the JS alert isn't dealing with the entities properly.) If you do actually need to convert from HTML entity to actual character... I'd probably use a Java Regex replace with a callback function. That could fix any hex or decimal entities easily enough, with just a little bit more effort required to compile a lookup for named entities. (If anyone wants to go that route and can't find an existing function, I don't mind throwing it together (later tonight), but only if I'm not reinventing a wheel that already exists - i.e. someone search cflib/etc and if there's nothing on there I'll add one) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318931 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

