Thanks trying this now.
On Thu, Jul 21, 2011 at 2:05 PM, Mike Chytracek <[email protected]> wrote: > > Strip everything outside of the body tags. > > content = the content from your db. > > <cfset startBody = FindNoCase("<body>", content,1)> > <cfset endBody = FindNoCase("</body>", content, startBody)> > <cfset newContent = mid(content, startBody +5, endBody - startBody -5)> > > Adjust code if you want to strip between <div> tags or something else. > > > > > > Mike Chytracek > Managing Partner > p. 312.239.0032 > c. 815.302.3507 > f. 866.839.7896 > > > > > -----Original Message----- > From: Torrent Girl [mailto:[email protected]] > Sent: Thursday, July 21, 2011 12:58 PM > To: cf-newbie > Subject: Displaying HTML from a database > > > Hi All. > > I have googled this topic and everyone says to just wrap the code in a > cfoutput tag and it will work. > > It's not working for me. > > Here is the issue: > > The code has been added to the database with a html head, meta, tags as > well > as some formatting tags. > > When I output it, I see the actual tags on the page and not the HTML > display > I am looking for. > > Any ideas? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5376 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
