Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Display HTML stored in database table using coldfusion

Posted on 2009-06-29
3
Medium Priority
?
694 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…
Suggested Courses

610 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