RE: Strip HTML from String
There are functions for this at www.cflib.org -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:40 AM To: CF-Talk Subject: Strip HTML from String Hello everyone... I saw a while back that someone either posted a snippet or a link to a tag somewhere that would strip out HTML tags from a string. I tried looking though my e-mail but cant seem to find it, also tried looking on a few exchanges but they did not do what I needed. Basically if I have a string that looks like this: code to strip body Here is some font face=Arial, Helvetica, sans-serifsample/font test with a a href=""> /body end output of striped code Here is some sample test with a link. end Thanks for any help... Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Strip HTML from String
Yeah I found Isaac's on cflib.com and that's what I'm using now, Thanks for the info... - Neal _ From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:57 AM To: CF-Talk Subject: RE: Strip HTML from String There are functions for this at www.cflib.org -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:40 AM To: CF-Talk Subject: Strip HTML from String Hello everyone... I saw a while back that someone either posted a snippet or a link to a tag somewhere that would strip out HTML tags from a string. I tried looking though my e-mail but cant seem to find it, also tried looking on a few exchanges but they did not do what I needed. Basically if I have a string that looks like this: code to strip body Here is some font face=Arial, Helvetica, sans-serifsample/font test with a a href=""> /body end output of striped code Here is some sample test with a link. end Thanks for any help... Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Strip HTML from String
Hi Neal, Try: ReReplace(Form.CalloutComments,[^]*, ,ALL) Where 'Form.CalloutComments' is your string. Pretty simplistic, but it works. I'm sure someone will come up with something else..! -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 5:40 pm To: CF-Talk Subject: Strip HTML from String Hello everyone... I saw a while back that someone either posted a snippet or a link to a tag somewhere that would strip out HTML tags from a string. I tried looking though my e-mail but cant seem to find it, also tried looking on a few exchanges but they did not do what I needed. Basically if I have a string that looks like this: code to strip body Here is some font face=Arial, Helvetica, sans-serifsample/font test with a a href=""> /body end output of striped code Here is some sample test with a link. end Thanks for any help... Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Strip HTML from String
That should work if you want to remove all HTML.If you want to be more selective, there's a UDF called StripTags by S. Isaac Dealey at http://www.cflib.org that is supposed to be pretty good. --Ben Doom [EMAIL PROTECTED] wrote: Hi Neal, Try: ReReplace(Form.CalloutComments,[^]*, ,ALL) Where 'Form.CalloutComments' is your string. Pretty simplistic, but it works. I'm sure someone will come up with something else..! -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 5:40 pm To: CF-Talk Subject: Strip HTML from String Hello everyone... I saw a while back that someone either posted a snippet or a link to a tag somewhere that would strip out HTML tags from a string. I tried looking though my e-mail but cant seem to find it, also tried looking on a few exchanges but they did not do what I needed. Basically if I have a string that looks like this: code to strip body Here is some font face=Arial, Helvetica, sans-serifsample/font test with a a href=""> /body end output of striped code Here is some sample test with a link. end Thanks for any help... Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Strip HTML from String
Thanks for the ringing endorsement Ben. :) Ben doesn't use my functions because he's too good with regex to need them. heh :) That should work if you want to remove all HTML.If you want to be more selective, there's a UDF called StripTags by S. Isaac Dealey at http://www.cflib.org that is supposed to be pretty good. --Ben Doom [EMAIL PROTECTED] wrote: Hi Neal, Try: ReReplace(Form.CalloutComments,[^]*, ,ALL) Where 'Form.CalloutComments' is your string. Pretty simplistic, but it works. I'm sure someone will come up with something else..! -Original Message- From: Bailey, Neal [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 5:40 pm To: CF-Talk Subject: Strip HTML from String Hello everyone... I saw a while back that someone either posted a snippet or a link to a tag somewhere that would strip out HTML tags from a string. I tried looking though my e-mail but cant seem to find it, also tried looking on a few exchanges but they did not do what I needed. Basically if I have a string that looks like this: code to strip body Here is some font face=Arial, Helvetica, sans-serifsample/font test with a a href=""> /body end output of striped code Here is some sample test with a link. end Thanks for any help... Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] s. isaac dealey214.823.9345 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.turnkey.to/ontap [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Strip HTML from String
Thanks guys... Yeah I just happen to find it on CFLib right when Ben posted. I knew there was something out there. Thanks Isaac, Ben this is what I was looking for. Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] _ From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:23 PM To: CF-Talk Subject: Re: Strip HTML from String Thanks for the ringing endorsement Ben. :) Ben doesn't use my functions because he's too good with regex to need them. heh :) That should work if you want to remove all HTML.If you want to be more selective, there's a UDF called StripTags by S. Isaac Dealey at http://www.cflib.org that is supposed to be pretty good. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Strip HTML from String
Glad to help. :) Thanks guys... Yeah I just happen to find it on CFLib right when Ben posted. I knew there was something out there. Thanks Isaac, Ben this is what I was looking for. Neal Bailey Internet Marketing Manager E-mail:mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] _ From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:23 PM To: CF-Talk Subject: Re: Strip HTML from String Thanks for the ringing endorsement Ben. :) Ben doesn't use my functions because he's too good with regex to need them. heh :) That should work if you want to remove all HTML.If you want to be more selective, there's a UDF called StripTags by S. Isaac Dealey at http://www.cflib.org that is supposed to be pretty good. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]