Lucee Tag Reference
Tag <CFSAVECONTENT>
Saves the generated content inside the tag body in a variable.
Body
This tag must have a body.
Example
<cfsavecontent [append="boolean"] [trim="boolean"] variable="string"> </cfsavecontent>
This tag is also supported within cfscript
<cfscript> savecontent [append="boolean"] [trim="boolean"] variable="string" { } </cfscript>
Attributes
The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name | Type | Required | Description |
---|---|---|---|
append | boolean | No | if true, the saved content will be appended to an already existing variable instead of overwriting it. |
trim | boolean | No | trim result |
variable | string | Yes | The name of the variable in which to save the generated content inside the tag. |