If the tag has an option to put it's output in a variable, then it's easy - just cut
off the offending text with a string function.
If the tag directly outputs the offending text, you will have to write a nested custom
tag. Put the offending tag inside your nested tag. You will have access to the output
from the tag and can modify it in your nested custom tag like this:
Usage:
<cf_chopjunk choplength=13>
<cf_offendingtag>
</cf_chopjunk>
chopjunk.cfm:
<cfif ThisTag.ExecutionMode is 'End'>
<cfparam name="attribute.choplength" default=0>
<cfset ThisTag.GeneratedContent =
left(ThisTag.GeneratedContent,len(ThisTag.GeneratedContent)-attribute.choplength)
<cfoutput>#Evaluate("""#ThisTag.GeneratedContent#""")#</cfoutput>
<cfset ThisTag.GeneratedContent = "">
</cfif>
At 12:31 PM 10/21/00 -0700, Adrian Cesana wrote:
>Im using a tag from the Allaire Developers Exchange , it is being called
>using CFMODULE. This tag outputs a string of images, for some reason (bug I
>believe) after the images there is a </tr></table> being written out and it
>is screwing up my page layout. Is there some way I can strip this off, Im
>trying to get a demo up and running and probably wont have the un-encrypted
>source of this thing until probably Tuesday.
>
>Thanks,Adrian
>
>------------------------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
>with 'unsubscribe' in the body to [EMAIL PROTECTED]
---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 x204 Fax 1.212.545.0938
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]