You're almost there... You're missing "RE" on the beginning of your
replace() function, i.e. REReplace()...

<cfset StrippedVariable = REReplaceNoCase(your_variable,"<[^>]*>", "",
"All")>

hth

s. isaac dealey   214.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

> 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



-----------------------------------------------
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