Solved

Display HTML stored in database table using coldfusion

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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 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 automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…

733 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