are troubling the way they are with cfmail... I like to use an include
to keep the indentation of the parent page straight and then have
separate indentation and formatting for the content... so it'd be like
<cfif something>
<cfset variables.variable = "here">
<cfsavecontent variable="filecontent"
><cfinclude template="filecontent.cfm"></cfsavecontent>
<cffile action="" file="c:\temp.txt"
output="#trim(filecontent)#">
</cfif>
And then inside filecontent.cfm
<cfoutput>
Blah blah blah #variables.variable#
blah blah
block quoted stuff
yadda yadda
Sincerely Pope Jaun Paul Sartre
</cfoutput>
> I generally use cfsavecontent to grab everything into a
> variable, then
> write it out. Besides being easier (not having to worry
> so much about
> escaping characters) it's easier to debug and change
> later.
> --Ben Doom
> Robert Orlini wrote:
>> How can I include html tags with quotes in the output of
>> a CF File action?
>>
>> When I do include html that has quotes such as <font
>> size="1"
>> face="Arial">, I get an error.
>>
>> The line I use below generates an error. When I remove
>> the <font
>> size="1" face="Arial"> then its OK.
>>
>> <CFfile action="" file="r:\marketingtrial.htm"
>> output="<blockquote><tr><td><strong><small><font size="1"
>> face="Arial">#name#</font></small></strong></font></td></
>> tr></blockquote>">
>>
>> Thanks.
>>
>> Robert O.
>> HWW
>>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

