remove trailing slashes in unclosed tags