***Note: This reply will be delayed because Outlook sucks*** If you are looking for a ColdFusion solution, you may wish to start with the Custom Tag cf_removeHTML available at the Allaire Developer exhchange. Here is the link: http://devex.allaire.com/developer/gallery/SearchResults.cfm?keywords=remove +html It won't do exactly what you want, but it may be a start. I use it to strip out HTML from formatted content entries for the sake of including a little blurb in user search results. Works great for me.... Marwan Saidi Webmaster CED - Concord IS msaidi at ced-concord.com 407.741.8645 -----Original Message----- From: jon steele [mailto:jjsteele22 at yahoo.com] Sent: Thursday, April 26, 2001 11:23 AM To: thelist at lists.evolt.org Subject: [thelist] RE: ColdFusion and checking HTML Thanks Josh, Is there a way to strip all html tags from a string (remove everything between '<' and '>'? That is, only leave the text? Maybe I can alter that to strip and leave <img> tags, then Trim it and check that string's length. How could I get rid of the HTML tags? Thanks, Jon. Joshua's Message: Hmmm... interesting problem. Unfortunately, the algorithm you mentioned will not be enough to solve the problem, though it will get close. If you are happy with close, then yes, the loop can be constructed. It'll be slow as h**l in ColdFusion, but it can be done. Try converting the string to an array using > is the delimiter. Then loop through the array checking the items against your checklist. -joshua __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ --------------------------------------- For unsubscribe and other options, including the Tip Harvester and archive of TheList go to: http://lists.evolt.org Workers of the Web, evolt !