I indeed wondered why Toddzimm was having such difficulties.
I now understand the question to be as follows. Given the string,
<cfset contentFromDB = "Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Phasellus ultricies diam ut magna.
Praesent pede risus, congue non, pellentesque non, nonummy sed,
sapien.<br><br><cf_WrapImage
filename=""cell_staff.jpg"" frameType=""B"" altText=""a
manufacturing cell team""><br><br>Curabitur neque
mi, vulputate eget, suscipit nec, blandit quis, dolor. Cras
elementum.Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas.">
does there exist Coldfusion code one can put on the current
page to run the custom tag?
I can now see the source of the misunderstanding. I have
added extra double quotes to escape the double-quotes around the
attribute values. Toddzimm's version of the text, where the quotes
are not escaped, gives the impression that we're already in a page
which displays the text from the database. Hence, my code
suggestions.
I think the reason for the failed attempts is that Coldfusion
tags and functions for outputting data have been tag-defanged. By
that I mean, they have been designed so as to ignore any tags that
occur in the output. For example, in the following block of code,
Coldfusion ignores any tags that occur in the output. Unknown tags
don't even cause an exception.
<someTag>
<cfoutput><someTag></cfoutput><br>
<someTag /> <cfoutput><someTag
/></cfoutput><br>
<someTag></someTag>
<cfoutput><cfscript>writeoutput("<someTag></someTag>");</cfscript></cfoutput><br>
<cfscript>writeoutput("<cfset
x=2><cfscript>writeoutput(x);</cfscript>");</cfscript>
<br>
<cfset y="<cf_myCustomtag attr1=1 attr2=2>">
<cfoutput>#y#</cfoutput>
<cfset z="<cfset
x=2><cfscript>writeoutput(x);</cfscript>">
<cfoutput>#Evaluate(DE(z))#</cfoutput>
Coldfusion will therefore ignore the custom tag
<cf_wrapimage>, when it occurs in the output. But then, that
is where it occurs when we apply <cfoutput>, writeoutput(),
evaluate(), etc.
... View more