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.
>
>
>
>>>