remove doctype and some svg attributes