fix HTML syntax errors