0
Displaying HTML stored in a database
Community Beginner
,
/t5/coldfusion-discussions/displaying-html-stored-in-a-database/td-p/14056127
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
------------------------------------------
-----------------------------------
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
------------------------------------------
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

