fix closing HTML tags