Solved

Display HTML stored in database table using coldfusion

Posted on 2009-06-29
3
664 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to insert an Iframe into 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 : Open Page or Post…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

910 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

21 Experts available now in Live!

Get 1:1 Help Now