fix overly aggressive santization that cleaned out code blocks with attrs in it