Solved

Display HTML stored in database table using coldfusion

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
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…

770 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