Skip to main content
Mike John Peters
Participant
September 1, 2023
Question

Displaying HTML stored in a database

  • September 1, 2023
  • 0 replies
  • 141 views

Hi there,
I have started using ColdFusion again after a break of many, many years, so I’m as rusty as anything.

 

Quick question.
I have a table that stores the HTML-tagged content between body tags. It is for the narrative documentation of a science project ( a bit like Wikipedia articles). I use cffile action=“write” to create a static HTML page for each article.

 

How do I get the HTML tags to be outputted by ColdFusion? I have tried both HTMLEditFormat() and HTMLCodeFormat, and neither.

 

The CFML files execute fine, but the displayed content is stripped of any HTML content in the database table.

 

cfoutput

#Article#

/cfoutput

 

Many thanks
Mike Peters
New Zealand

    This topic has been closed for replies.