Hey all,

 

I'm trying to replace a hyperlink and just display the text. I need to
remove the <a href="http://www.google.ca";>www.google.ca
<http://www.google.ca%3c/a> </a> from text within fckeditor and just display
the text www.google.ca I tried finding a setting for the editor so it
doesn't automatically create hyperlinks when you type www. Or http:// but
didn't see such a setting.

 

Here's what I have so far:

<cfset ad = Replace("#form.addesc#", "http://","";)>

<cfset ad2 = Replace("#ad#", "<a href=#chr(34)#","")>

<cfset ad3 = Replace("#ad2#", "#chr(34)#>","")>

<cfset ad4 = Replace("#ad3#", "</a>","")>

<cfoutput>#ad4#</cfoutput>

 

It works, but it duplicates the link. How can I remove the duplicate?

 

Thanks,

 

Rick Sanders

Webenergy

Canada: 902-431-7279

USA:       919-799-9076

Canada: www.webenergy.ca

USA:       www.webenergyusa.com

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325545
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to