Santize custom attributes. #2587