You've handled the hyphen, but not the mdash or the ndash, for example.
It probably uses carraige return/line feeds (chr(13) and chr(10)), so you need to handle both of those.
Just some gueses.
Jerry Johnson
>>> [EMAIL PROTECTED] 10/30/03 02:11PM >>>
Okay, I'm trying to strip out html entity codes that don't play nicely with
RTF for a "download as word doc" feature. I have it working for a bunch of
them, but this one doesn't work:
str = replace(str, '&##61623;', 'chr(10)', 'All');
And this one only works sometimes:
str = replace(str, '&##8211;', '-', 'ALL');
Where as all these work:
str = replace(str,"&##8217;", "'", "ALL");
str = replace(str,'&##8220;', '"', 'ALL');
str = replace(str,'&##8221;', '"', 'ALL');
str = replace(str, '&##8212;', '--', 'ALL');
str = replace(str, '-', '-', 'ALL');
str = replace(str, '&##8230;', '...', 'ALL');
str = replace(str, "&##8216", "'", "ALL");
I'm going a little nuts here. What am I missing?
---------------------------------------------------------
Deanna Schneider
UWEX-Cooperative Extension
Interactive Media Developer
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

