The following will accomplish your goal, but like has been pointed out in the comments section, this may not be your best option.
<cfset cleanForm = {}>
<cfloop list="#form.fieldnames#" index="i">
<cfset cleanForm[i] = HTMLEditFormat(form[i])>
</cfloop>
Instead of referencing form.firstName
you would now reference cleanForm.firstName