Word is always an issue, but if you're using a form text field, here's a
couple of CF Replace functions you can run strings through deal with Word
characters.
I've used this for awhile and it seems to deal very reliably with the most
predictable crap that comes from word. This email may mess this up... if it
does I'll post a file so you can download the strings.
Putting data that has been cut/paste from word into a DB, run the following
on the text field to prepare it for HTML.
'#ReplaceList(trim(form.txt1),
"',.,",",T,R,C,#chr(13)#,<br>,","'',...,"","",™,®,©,<br
/>,")#'
Pulling data from DB, run the following on output to be displayed in a text
field:
#ReplaceList(trim(getrecord.txt1),"™,®,©,<br
/>","T,R,C,#chr(13)#")#
Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com
Great advertising can't be either/or... It must be &.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317084
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4