Fixes some HTML validation issues