You need to check if summary contains a pound and if so, replace it with
## probably.  Not sure if there's a function to escape pounds
automatically or not.

John

-----Original Message-----
From: Jon Block [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 2:20 PM
To: CF-Talk
Subject: Any good with DE() ??

I've got some really cool code that is based upon a technique that works
like this...


<cfsavecontent variable="displayFieldFormat">
        <b>#summary#</b>
</cfsavecontent>

<cfoutput query="exampleQuery">
#evaluate(de("#displayFieldFormat#"))#
</cfoutput>


(Don't ask why I'm doing it this way.. it's required based on the other
things going on in my code).


I'm getting the results I want BUT once in a while, one of the
variables, "summary" for example, will itself contain a pound sign (#),
which is causing a problem and giving me a ...


An error occurred while evaluating the _expression_:


Can someone please give me the fix for this?


Thanks,
Jon
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to