Heres a basic tag/module I use
just fill in the values
'string' = string to strip
'output' = name of string to output as
'strip' = characters to strip (use wild cards etc such as <[^>]*>)
<!---// set local variables //--->
<cfset sText = "">
<!---// set default attributes //--->
<cfparam name="Attributes.string" default="">
<cfparam name="Attributes.output" default="cfStripHTML">
<!---// [begin] custom tag action //--->
<!---// store the value of the string provided from the calling
template into the variable sText //--->
<cfset sText = Attributes.string>
<!---// Strip's all remaining Tags //--->
<!---<cfset sText = rereplace(sText,"<[^>]*>","","ALL")>--->
<cfset sText = rereplace(sText,"#attributes.strip#","","ALL")>
<!---// store the value sText into the calling template
with whatever value is contained in the attribute
"OUTPUT" //--->
<cfset t = setVariable("Caller.#Attributes.output#", sText)>
<!---// [ end ] custom tag action //--->
<cfsetting enablecfoutputonly="no">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234140
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54