I need to make text URL's in messages a link on a web page.
The message will contain http:// in the body somewhere and may have more
than one. I need to search that message and replace it with the HTML code to
make it a Hyperlink.
<Cfif #Body# CONTAINS ' http://'>
<CFSET Start = FindNoCase(' http://', Body)> <!--Find the start of the
URL-->
<CFSET End = Find(' ', Body, Start)> <!-- from the start of the URL look
for the space-->
<CFSET TLink = Mid(Body, Start , End)> <!--Set Tlink to be from the Start to
the end-->
<cfset Link = "<a href="#TLink#">#Tlink#"</a>">
<cfoutput>#Link#</cfoutput>
The above is not working and I don't think if it did it would work if there
are more than one link in the message.
Is there another solution or Custom Tag that will output URLs as hyperlinks?
Thanks in advance
Rick
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/[email protected]
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]