Solved

Display HTML stored in database table using coldfusion

Posted on 2009-06-29
3
660 Views
Last Modified: 2013-12-16
Okay i have a little application that i've created allowing members of our documentation department to take existing product documentation that is formatted in HTML and input it into a database table. The problem i am having is that when a customer comes to the web site i want for them to see this content properly formatted.

Instead what i'm getting on the output page is exactly what was put into the table, i.e. the raw html. i just need a way for the coldfusion page to display it as formatted HTML and not the code itself
0
Comment
Question by:vpanjabi
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 50 total points
ID: 24738926
Assuming you are using a .cfm page to output the code, there should be no problems. Just output the variable containing the html:

<cfset htmlContent = '<h1>Heading</h1> Some <b>bold</b> text, some <span style="color:red;"> red text</span>'>
<cfoutput>#htmlContent#</cfoutput>
0
 

Author Closing Comment

by:vpanjabi
ID: 31598025
Wow..i...am...officially...an...idiot....

I love simple solutions...too bad i never look for them.

thanks!
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24739032
;-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now