Guess this forums doesn't support attachs.
here is the code, wide spread:


<cfparam name="attributes.scopes">
<cfparam name="attributes.chars" default="">
<cfparam name="attributes.tags" default="">
<cfscript>
 reTags = "" ;
 if ( attributes.tags eq "ALL" )
  reTags = "<[^>]*>" ;
 else if ( attributes.tags neq "" )
  reTags = "</?(#ListChangeDelims(attributes.tags,  '|', ',' )#)[^>]*>" ;
 charList = '' ;
 if ( attributes.chars neq "" ) {
  charList = attributes.chars ;

  for ( i=Len(attributes.chars)-1; i gte 1; i=i-1 )
   charList = Insert( ",", charList, i ) ;
 }
</cfscript>
<cfloop list="#attributes.scopes#" index="scopeName">
 <cfif not findnocase("multipart/form-data",cgi.CONTENT_TYPE)>
  <cfscript>
   s = Evaluate( scopeName ) ;
   for ( field in s )
    if ( IsSimpleValue( s[field] ) ) {
     if ( reTags neq '' )
      s[field] = REReplace( s[field], reTags, "", "ALL" ) ;
     if ( charList neq '' )
      s[field] = ReplaceList( s[field], charList, "" ) ;
    }
  </cfscript>
 </cfif>
</cfloop>



Thanks,

Michael Lugassy
Interactive Music Ltd.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to