> I have a column that I am retrieving from a SQL 08 database that contains > lots of word formatting. > > here is how the dump looks: > > <p><h2>SUPPLIER: Scott Specialty Gases</h2> <table class=MsoNormalTable > border=0 cellspacing=0 cellpadding=0 > style='mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'> <tr > style='mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti- > lastrow:yes'> <td width=120 valign=top style='width:1.25in;padding:0in 0in > 0in 0in'> <p class=MsoNormal><b><span > style='font-size:10.0pt;font-family:Arial; color:black'>SUPPLIER > ADDRESS:</span></b><span style='font-size:9.0pt; font- > family:Arial;color:black'><o:p></o:p></span></p>....... > > My problem is when I put this in a CFOUTPUT tag, the styles, etc don't > render. It looks exactly like it does when it comes out of the database. None > of the formatting is displayed. > > Any suggestions?
I suspect that you're storing HTML escape characters (< instead of <, etc) in your database. If so, you'll need to unescape them. You can do this with Replace. I suspect there's a function on cflib.org that does this too. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348570 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

