House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Preserve HTML format when inserting into HTML

Author:
Jake Munson
09/08/2010 05:48 PM

Ok, guys, I have a working proof of concept.  At least on my server, this simple 4 line code example illustrates the problem.  To recreate, dowload this file: http://techfeed.net/xmlHTMLTest.zip And then follow these steps. 1.  Extract the zip to your ColdFusion sites directory. 2.  BEFORE RUNNING THE .CFM, open up parkRegions.xml and note how the first <region> has normal (not escaped) HTML tags. 3.  Run xmlHTMLTest.cfm (no output is generated, so you'll just see a blank page). 4.  Open parkRegions.xml again and note how the first <region> now contains escaped HTML.  At least, for me on my servers it does (I tried this code on two different servers). Can you see what I'm doing wrong?


Search cf-talk

February 04, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29