hi guys,
i have the following script to add target="_blank" to all href's in a users
message...
<cfset new_text = REReplaceNoCase(new_text, "([[:alnum:]]*://[[:alnum:[EMAIL
PROTECTED](\.[[:alnum:]][[:alnum:]-]*[[:alnum:]]\.)?[[:alnum:]]{2,}(\.?[[:alnum:]\/[EMAIL
PROTECTED]|:~`+$%?_##&-])+)", "<a target=""_blank"" href=""\1"">\1</a>",
"ALL")>
this works great. however, how do i get it to NOT add the attribute when the
text is edited? eg. not add it to existing href's that have been amended using
the above.
any help will be greatly appreciated.
mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4