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 06:01 PM

Ray, In addition to my previous email with proof of concept code, I am able to reproduce my problem using your code below by adding this cffile tag to the end of your code: <cffile action="write" file="#expandPath('foo.xml')#" output="#toString(x)#"> >Weird. I can't reproduce this: > > ><cfset s = "<font color=""red""><b>foo</b></font>"> ><cfxml variable="x"> ><root> ><child name="one" /> ></root> ></cfxml> > ><cfset x.root.child[1].xmlText = s> > > ><cfoutput> >#x.root.child[1].xmltext# ><p> >#s# ></cfoutput> > >The value is NOT escaped in the XML, nor in the original variable. > > > >>>


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