Example (from a play called Hadrian VII, probably slightly paraphrased, not that it matters):
“Go tickle your ass with a feather.”
“WHAT did you say?”
“I said ‘particularly nasty weather.’”
Is there a term for this particular gimmick? That is, a character says something nasty and insulting, then when asked to repeat it by an outraged victim says something perfectly innocous which is phonetically similar. To keep this out of MPSIMS, I suppose we need to try to discuss the technique, not provide fresh examples from “South Park” or other sources.
Malapropism doesn’t particularly fit - that generally involves a ludicrous misuse which is unintentional, and the butt of the gag is the speaker who made the mistake. This specific device involves intention on the part the original speaker, and is being used against the character serving as the speaker’s foil (usually an authority figure whom the speaker is getting the intellectual better of).