Fix HTML parsing