Cleans up extraneous comments in template tag