Neal,
Not sure if this will help, but the following UDF will do what you are
talking about

**
 * A function that will strip out all anchors in text that has been
passed as an argument.
 * Version 2 by Raymond Camden
 * 
 * @param str    String to strip anchors from. (Required)
 * @return Returns a string. 
 * @author Brian Brown ([EMAIL PROTECTED]) 
 * @version 2, November 1, 2002 
 */
function stripAnchors(str) {
        var temp =
reReplaceNoCase(str,"<[[:space:]]*a[[:space:]]+[^>]*>","","all");
        return
reReplaceNoCase(temp,"<[[:space:]]*/a[[:space:]]*>","","all");
}

- Kyle

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Bailey, Neal
Sent: Wednesday, March 10, 2004 4:16 PM
To: [EMAIL PROTECTED]
Subject: Calling Mr. Dealey. 

Calling Mr. Dealey. 

OK so I found your wonderful UDF StripTags on cflib.org last week or so
and I have it working just fine. But I am trying to figure out if there
is a way to keep the content of a link tag when it strips it. 

Meaning if I have a link like this: 

Welcome to <a href="http://www.macromedia.com";
target="_blank">Macromedia!</a>

I would like to strip it so that I am left with.

Welcome to Macromedia!

Any ideas. 

Thanks,
Neal Bailey
Internet Marketing Manager
E-mail: [EMAIL PROTECTED]




-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe: 
   Send UNSUBSCRIBE to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to