• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Displaying HTML stored in a database

Community Beginner ,
Sep 01, 2023 Sep 01, 2023

Copy link to clipboard

Copied

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

Mike Peters
-----------------------------------
Redworks Studio
 
PO Box 902
Invercargill 9840
New Zealand
 
M 64+ 22 600 5006
Skype redworksnz
Email mike@redworks.co.nz
Facebook www.facebook.com/NZMikePeters
 
Home www.mtchocolate.com  
Art Studio www.redworks.co.nz
Software Architecture www.blog.ajabbi.com
------------------------------------------

Views

77

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation