Does anyone know of a way to strip out all of the HTML tags from a string where the output will be plain text? I have tried the code below but it does not replace all of the HTML tags.
<cfset your_variable = "<body>Strip out all HTML from a variable</body>"> <cfset StrippedVariable = ReplaceNoCase(your_variable, "<[^>]*>", "", "All")> <cfoutput>#StrippedVariable#</cfoutput> Thanks, Brett T. Smith World Wide Internet Publishing http://www.WWIP.com/ ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
