Thursday, June 18, 2009

coldfusion variable variables

for some stupid reason, this code always eludes me when i need it. posting it here for referencenence.


<cfset listToSterilize = "id,keywords,yada,yada,yada">
<cfloop list="#listToSterilize#" index="index">
<cfset "#index#" = #htmleditformat(evaluate(index))#>
</cfloop>

bång!