There's an evaluate trick you can use ...
temp = myquery.emailcontent;
temp = evaluate("'#replace(temp,"'","''")#'");
You have to be kind of careful with that tho for a number of reasons,
one that if you let users create email templates using # to indicate
variables, it has the potential to allow them to execute all sorts of
code that you wouldn't want them executing, like if they put in
#application.coldspring.getBean('somebean').deleteStuff()#. The other
thing is that I think ther are some other character combinations that
can cause it to error out (asside from single quotes, which I accounted
for with the replace() in the sample here. But other than that, it
basically works like cfoutput. I suspect it actually is just a happy
coincidence that it accesses the same engine used by the cfoutput tags.
--
s. isaac dealey ^ new epoch
isn't it time for a change?
ph: 617.365.5732
http://onTap.riaforge.org/blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306451
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4