removes inline css and puts it where it belongs