Saves the generated content inside the tag body in a variable.

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
boolean, optional

if true, the saved content will be appended to an already existing variable instead of overwriting it.

string, required

The name of the variable in which to save the generated content inside the tag.

boolean, optional

trim result

><!--- body ---></cfsavecontent>


lucee+trycf <cfoutput> <cfsavecontent variable="test"> Here you can add any cf, html elements etc., Where you need it just place the variable of cfsavecontent, automatically shows the content stored here. </cfsavecontent> <cfsavecontent variable="example"> <br> <input type="text" nmae="textfield"> </cfsavecontent> #test# #example# </cfoutput> #test#

See also