Clean divs before converting so the conversion is idempotent.